fix: fix sign command options & show global options in subcommand help #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! It's me again. I was using this repo's CLI again and noticed that in v0.6.0's
sign
command was giving me this error:And after realizing from the check of
amo-upload/src/bin.ts
Line 64 in 959bc26
addonVersion
which was explicitly defined inside the subcommand inamo-upload/src/bin.ts
Lines 29 to 35 in 959bc26
sign
command any of the global options weren't being passed at all. I noticed thelist
subcommand already has a solution for that inamo-upload/src/bin.ts
Lines 96 to 102 in 959bc26
sign
command as well.I also added the
showGlobalOptions
flag for commander.js mentioned in their readme and example that I found while looking up info on the initial error.I know v0.6.0 was pushed 10 months ago so I'm a bit late to the party, but would still appreciate having this CLI fix merged. Thanks!