mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Require an argument and print help if it's missing
This commit is contained in:
parent
1820a2ccfa
commit
685b1ead09
@ -469,6 +469,10 @@ if __name__ == '__main__':
|
||||
if not use_lp_bugs and not get_email_address():
|
||||
sys.exit(1)
|
||||
|
||||
if len(args) == 0:
|
||||
optParser.print_help()
|
||||
sys.exit(1)
|
||||
|
||||
if len(args) not in (2, 3): # no release specified, assume development release
|
||||
release = LpApiWrapper.getUbuntuDevelopmentSeries().name
|
||||
print >> sys.stderr, ("Source package / target release missing - assuming %s " %
|
||||
|
Loading…
x
Reference in New Issue
Block a user