Skip to content

Commit da5acbe

Browse files
author
Hamada Gasmallah
committed
fix(pminit/cli.py): make sure all args after executable are treated as flags directly to that executable
1 parent db71b24 commit da5acbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/pminit/pminit/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def commandType(value: str):
2222
def main():
2323
parser = argparse.ArgumentParser(description="A tool to enable running npm on the correct package.json location")
2424
parser.add_argument("executable", nargs=1, help="Should be npm.", type=commandType)
25-
parser.add_argument("args", nargs="+", help="Args to pass into npm command", type=str)
25+
parser.add_argument("args", nargs = argparse.REMAINDER)
2626
args = parser.parse_args()
2727

2828
pythonmonkey_path= os.path.realpath(
@@ -31,8 +31,8 @@ def main():
3131
'..',
3232
'pythonmonkey'
3333
)
34-
)
35-
34+
)
35+
3636
execute(' '.join( args.executable + args.args ), pythonmonkey_path)
3737

3838

0 commit comments

Comments
 (0)