Closed magicdawn closed 2 years ago
metadata = Option.Boolean('--metadata', true, { description: 'keep metadata', })
I have a Boolean option, and defaults to true, in case we want to turn off default true, when called --metadata false, It shows error like
true
--metadata false
Unknown Syntax Error: Extraneous positional argument ("false")
I think the correct usage would be --no-metadata then, as documented.
--no-metadata
Indeed
I have a Boolean option, and defaults to
true
, in case we want to turn off default true, when called--metadata false
, It shows error like