Skip to content

Commit 44f4504

Browse files
author
Hamada Gasmallah
committed
fix(pminit/cli.py): --help is not a valid command to npm bare
1 parent dbefa64 commit 44f4504

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python/pminit/pminit/cli.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ def execute(cmd: str, cwd: str):
1111

1212
popen.stdout.close()
1313
return_code = popen.wait()
14-
#For some reason npm returns a non zero
15-
#exit code when `--help` is used in the commands.
16-
#This shouldn't raise an error.
17-
if return_code and "--help" not in cmd:
14+
if return_code:
1815
raise subprocess.CalledProcessError(return_code, cmd)
1916

2017
def commandType(value: str):

0 commit comments

Comments
 (0)