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):
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue