Print a message when no arguments given (#684463)

This commit is contained in:
Martin Gracik 2011-03-14 09:43:12 +01:00
parent 0a7f221bd5
commit 213125199d

View File

@ -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)