diff --git a/src/sbin/lorax b/src/sbin/lorax index 0e7ab700..3096fa5d 100755 --- a/src/sbin/lorax +++ b/src/sbin/lorax @@ -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)