Argument syntax
#1714
-
The arguments page shows a variety of args. I'm unsure of the expected syntax. For some args, obviously the value must be specified, e.g.: command:
- --log-level debug But for others, should I specify this: command:
- --cleanup
- --label-enable Or this: command:
- --cleanup true
- --label-enable true Is the value expected, or inferred by the existence of the switch itself? |
Beta Was this translation helpful? Give feedback.
Answered by
piksel
Aug 3, 2023
Replies: 1 comment 1 reply
-
Boolean flags should never have an argument when passed as arguments/command, it's only for when the options are set using environment variables. So, never pass |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lonix1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Boolean flags should never have an argument when passed as arguments/command, it's only for when the options are set using environment variables.
So, never pass
true
as a command line argument, the presence of the flag is what enables the option.