From 827ce2f68b75f49fb95dfd3d9b19c6d2f108c325 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 24 May 2013 14:26:57 -0400 Subject: If no spec file is passed, print usage message then exit --- ipsbuild.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipsbuild.py') diff --git a/ipsbuild.py b/ipsbuild.py index 7680f8b..7ce11f9 100755 --- a/ipsbuild.py +++ b/ipsbuild.py @@ -34,3 +34,6 @@ if args.spec: build.show_summary() build.controller.do_tasks() os.chdir(cwd) +else: + print("For detailed usage information:\n\t--help or -h") +exit(0) -- cgit