Uploaded image for project: 'Network Observability'
  1. Network Observability
  2. NETOBSERV-2598

CLI options only take the first provided option

    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • NetObserv - Sprint 283
    • None
    • None
    • None

      Running the CLI such as with:

      ./build/oc-netobserv flows --interfaces=br-ex --max-time=10s --log-level=debug --background 

      will ignore the "--background" flag when building "options" that is later passed down to the go binary. It seems that only the first arg is taken into account (here: --interfaces=br-ex), and also some of the args that are parsed in a different way (here, --max-time and  --log-level work as well).

      If I write instead:

      ./build/oc-netobserv flows --background  --interfaces=br-ex --max-time=10s --log-level=debug

      ie. move --background first, then --background is correctly passed down to the go binary, but --interfaces is not

              jtakvori Joel Takvorian
              jtakvori Joel Takvorian
              None
              None
              None
              Kapil Jain Kapil Jain
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: