1
0
Fork 0
forked from josch/plakativ

raise error if none of --size, --factor or --maxpages is given

This commit is contained in:
Johannes 'josch' Schauer 2020-06-19 16:57:41 +02:00
parent 3025580284
commit eb39018d18
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -2125,7 +2125,12 @@ Report bugs at https://gitlab.mister-muffin.de/josch/plakativ/issues
elif isinstance(args.mode, int):
mode = "npages"
else:
raise Exception("logic error")
print(
"Error: must supply one of --size, --factor or --maxpages\n",
file=sys.stderr,
)
parser.print_usage(sys.stderr)
sys.exit(1)
compute_layout(
args.input,