Skip to content

Commit 2c90f35

Browse files
committed
#14 partially fixed
1 parent f8552e3 commit 2c90f35

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

jenkins_cli/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import print_function
2+
13
import argparse
24
from jenkins import JenkinsException
35

@@ -52,7 +54,10 @@ def main():
5254

5355
args = parser.parse_args()
5456
try:
55-
JenkinsCli(args).run_command(args)
57+
if args.jenkins_command is None:
58+
parser.print_help()
59+
else:
60+
JenkinsCli(args).run_command(args)
5661
except JenkinsException as e:
5762
print("Jenkins server response: %s:" % e)
5863
except KeyboardInterrupt:

0 commit comments

Comments
 (0)