summaryrefslogtreecommitdiff
path: root/libcons/opts-std-startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcons/opts-std-startup.c')
-rw-r--r--libcons/opts-std-startup.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libcons/opts-std-startup.c b/libcons/opts-std-startup.c
index 8bb2d73e..2490737d 100644
--- a/libcons/opts-std-startup.c
+++ b/libcons/opts-std-startup.c
@@ -84,15 +84,12 @@ parse_startup_opt (int opt, char *arg, struct argp_state *state)
case ARGP_KEY_ARG:
if (state->arg_num > 0)
/* Too many arguments. */
- argp_usage (state);
-
+ argp_error (state, "Too many non option arguments");
_cons_file = arg;
break;
- case ARGP_KEY_END:
- if (state->arg_num != 1)
- /* Not enough arguments. */
- argp_usage (state);
+ case ARGP_KEY_NO_ARGS:
+ argp_error (state, "Filename of console server missing");
break;
default: