-
What is the difference between param and option?
I can see that
It seems like a mixture of flag and option. Is this a correct interpretation? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
param It requires a value. For example, option It accepts a value, but can be omitted. For example,
An |
Beta Was this translation helpful? Give feedback.
-
The option has
|
Beta Was this translation helpful? Give feedback.
-
The The term "default value" is ambiguous, so we use |
Beta Was this translation helpful? Give feedback.
The
init
is the value when no options are specified. That is, the value when none of-?
,+?
,--*
,--no-*
are specified. The "default value" is the default value when the option is specified (but without a value).The term "default value" is ambiguous, so we use
init
(initial value when no option is specified) andon
(the value when a command line option without a value is specified) instead.