We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3a0c873 + ca6e929 commit 6560898Copy full SHA for 6560898
cmd2/cmd2.py
@@ -3118,8 +3118,9 @@ def quit():
3118
pyscript_parser = ACArgumentParser()
3119
setattr(pyscript_parser.add_argument('script_path', help='path to the script file'),
3120
ACTION_ARG_CHOICES, ('path_complete',))
3121
- pyscript_parser.add_argument('script_arguments', nargs=argparse.REMAINDER,
3122
- help='arguments to pass to script')
+ setattr(pyscript_parser.add_argument('script_arguments', nargs=argparse.REMAINDER,
+ help='arguments to pass to script'),
3123
+ ACTION_ARG_CHOICES, ('path_complete',))
3124
3125
@with_argparser(pyscript_parser)
3126
def do_pyscript(self, args: argparse.Namespace) -> None:
0 commit comments