noobaa-operator icon indicating copy to clipboard operation
noobaa-operator copied to clipboard

nb options Shows Flags That Are Not Global

Open shirady opened this issue 1 year ago • 0 comments

Environment info

NooBaa Operator Version: 5.13.0 Platform: minikube 1.28.0

Actual behavior

  1. nb option shows flags that are not always global options. For example: --admission is relevant only for installing the operator (using nb install --admission). It should appear in the flag of the related command/commands. Note: This is just an example of a flag that I used from the list, I'm sure there are more examples (the list seems long).

Expected behavior

  1. nb option shows flags that are global options - as written:

"The following options can be passed to any command".

For example: -n , --namespace is a flag that I must use in every function, it is a global option.

Steps to reproduce

  1. After nb install run: nb options.

More information - Screenshots / Logs / Other output

Screenshot 2023-02-08 at 17 50 50

shirady avatar Feb 08 '23 15:02 shirady