Print usage if we don't have a correct option. (Ticket #61)

This commit is contained in:
Jesse Keating 2007-11-20 17:29:18 -05:00 committed by Jesse Keating
parent 47b32e3c2d
commit 7bf5e3d458

6
pungi
View File

@ -167,9 +167,9 @@ if __name__ == '__main__':
(opts, args) = parser.parse_args()
#if not '-c' in sys.argv or not '--config' in sys.argv:
# parser.print_help()
# sys.exit(0)
if not opts.config:
parser.print_help()
sys.exit(0)
if opts.do_gather or opts.do_createrepo or opts.do_buildinstall or opts.do_packageorder or opts.do_splittree or opts.do_createiso:
opts.do_all = False