Print a message when no arguments given (#684463)
This commit is contained in:
parent
0a7f221bd5
commit
213125199d
@ -74,7 +74,11 @@ def main(args):
|
||||
|
||||
# parse the arguments
|
||||
opts, args = parser.parse_args()
|
||||
outputdir = args[0]
|
||||
|
||||
try:
|
||||
outputdir = args[0]
|
||||
except IndexError:
|
||||
parser.error("missing one or more required arguments")
|
||||
|
||||
if opts.showver:
|
||||
print(version)
|
||||
|
Loading…
Reference in New Issue
Block a user