2012-01-20 Roland McGrath <roland@hack.frob.com>
+ * ar.c (main): Handle oper_none as usage error.
+
* arlib-argp.c (options, parse_opt): Grok -U as inverse of -D.
* ranlib.c (argp): Use arlib_argp_children.
int status;
switch (operation)
{
+ case oper_none:
+ error (0, 0, gettext ("command option required"));
+ argp_help (&argp, stderr, ARGP_HELP_STD_ERR,
+ program_invocation_short_name);
+ status = 1;
+ break;
+
case oper_list:
case oper_print:
status = do_oper_extract (operation, arfname, argv, argc, -1);