Skip to content

Commit f1a23b8

Browse files
committed
misc-helper: adapt to commander v13
As of v13, `commander` really hates it when there are left-over arguments after parsing the command-line. Yet that is precisely what we need to do in order to have "Git-style" global options, i.e. options that come _before_ the sub-command name. So let's tell `commander` to chill out. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d5624c1 commit f1a23b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script/misc-helper.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ commander
3333
)
3434
.option("-c, --config <string>", "Use this configuration when using gitgitgadget with a project other than git", "")
3535
.option("-s, --skip-update", "Do not update the local refs (useful for debugging)")
36+
.argument("[args...]", "command and arguments")
3637
.parse(process.argv);
3738

3839
interface ICommanderOptions {

0 commit comments

Comments
 (0)