We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8552e3 commit 2c90f35Copy full SHA for 2c90f35
1 file changed
jenkins_cli/__init__.py
@@ -1,3 +1,5 @@
1
+from __future__ import print_function
2
+
3
import argparse
4
from jenkins import JenkinsException
5
@@ -52,7 +54,10 @@ def main():
52
54
53
55
args = parser.parse_args()
56
try:
- JenkinsCli(args).run_command(args)
57
+ if args.jenkins_command is None:
58
+ parser.print_help()
59
+ else:
60
+ JenkinsCli(args).run_command(args)
61
except JenkinsException as e:
62
print("Jenkins server response: %s:" % e)
63
except KeyboardInterrupt:
0 commit comments