revuput: more --help

This commit is contained in:
Daniel Holbach 2007-09-07 11:54:03 +02:00
parent 3b5d8a0eda
commit 61a0bbca1b

12
revuput
View File

@ -29,7 +29,13 @@ except:
# sys.exit(1)
USAGE = 'Usage: revuput [-n] [<location>] [<debuild options>]'
USAGE = \
"""Usage: revuput [-n] [<location>] [<debuild options>]
-n to file a new bug
<location> dput alias
<debuild options> options that are passed to debuild(1)
"""
def dput_check():
@ -153,6 +159,10 @@ def check_arguments(args):
location = 'default'
debuild_args = list()
if sys.argv[1] in ["--help", "-H"]:
print USAGE
sys.exit(0)
if len(sys.argv) == 1:
return (new_bug, location, debuild_args)