Print a message when no arguments given (#684463)
This commit is contained in:
parent
600e9c16e8
commit
aff37a71d1
@ -74,7 +74,11 @@ def main(args):
|
|||||||
|
|
||||||
# parse the arguments
|
# parse the arguments
|
||||||
opts, args = parser.parse_args()
|
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:
|
if opts.showver:
|
||||||
print(version)
|
print(version)
|
||||||
|
Loading…
Reference in New Issue
Block a user