Page MenuHomePhabricator

[tbs.cli] Options of external subcommands are not forwarded
Closed, ResolvedPublic1 Estimated Story Points

Description

Running commands such as toolforge <external-subcommand> -p or toolforge <external-subcommand> -n 10 fail, even if the options used in the examples are valid ones. Any options not specified as a @click.option decorator are simply ignored.

A solution would be to forward all unknown options for further manual processing to toolforge_cli.cli._run_external_command(), which handles all options and args just fine in its current implementation. https://click.palletsprojects.com/en/8.1.x/advanced/#forwarding-unknown-options

Related Objects

Event Timeline

Slst2020 set the point value for this task to 1.Nov 23 2022, 4:42 PM

Change 860852 had a related patch set uploaded (by Slavina Stefanova; author: Slavina Stefanova):

[cloud/toolforge/toolforge-cli@main] cli: Pass through flags to external subcommands

https://gerrit.wikimedia.org/r/860852

Change 860852 merged by jenkins-bot:

[cloud/toolforge/toolforge-cli@main] cli: Pass through flags to external subcommands

https://gerrit.wikimedia.org/r/860852