Skip to content

Commit 281abae

Browse files
ishachirimarfacebook-github-bot
authored andcommitted
Allow dryrun from cli in JSON launching case
Summary: Dryrun is a frequent flag so allow that from CLI Differential Revision: D83681938
1 parent 3b5df3a commit 281abae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torchx/cli/cmd_run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ def verify_no_extra_args(self, args: argparse.Namespace) -> None:
413413
continue
414414
if action.dest == "help": # Skip help
415415
continue
416+
if action.dest == "dryrun": # Skip dryrun
417+
continue
416418

417419
current_value = getattr(args, action.dest, None)
418420
default_value = action.default

0 commit comments

Comments
 (0)