Print a message when no arguments given (#684463)

This commit is contained in:
Martin Gracik 2011-03-14 09:43:12 +01:00
parent 600e9c16e8
commit aff37a71d1

View File

@ -74,7 +74,11 @@ def main(args):
# parse the arguments # parse the arguments
opts, args = parser.parse_args() opts, args = parser.parse_args()
try:
outputdir = args[0] outputdir = args[0]
except IndexError:
parser.error("missing one or more required arguments")
if opts.showver: if opts.showver:
print(version) print(version)