degesch: exit with error when arguments are given
This commit is contained in:
parent
16d10f574b
commit
43de836b91
|
@ -13452,6 +13452,11 @@ main (int argc, char *argv[])
|
||||||
opt_handler_usage (&oh, stderr);
|
opt_handler_usage (&oh, stderr);
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
if (optind != argc)
|
||||||
|
{
|
||||||
|
opt_handler_usage (&oh, stderr);
|
||||||
|
exit (EXIT_FAILURE);
|
||||||
|
}
|
||||||
opt_handler_free (&oh);
|
opt_handler_free (&oh);
|
||||||
|
|
||||||
// We only need to convert to and from the terminal encoding
|
// We only need to convert to and from the terminal encoding
|
||||||
|
|
Loading…
Reference in New Issue