forked from josch/plakativ
raise error if none of --size, --factor or --maxpages is given
This commit is contained in:
parent
3025580284
commit
eb39018d18
1 changed files with 6 additions and 1 deletions
|
@ -2125,7 +2125,12 @@ Report bugs at https://gitlab.mister-muffin.de/josch/plakativ/issues
|
||||||
elif isinstance(args.mode, int):
|
elif isinstance(args.mode, int):
|
||||||
mode = "npages"
|
mode = "npages"
|
||||||
else:
|
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(
|
compute_layout(
|
||||||
args.input,
|
args.input,
|
||||||
|
|
Loading…
Reference in a new issue