|
@@ -172,7 +172,6 @@ const char printforhelp[]= N_(
|
|
|
"\n"
|
|
"\n"
|
|
|
"Options marked [*] produce a lot of output - pipe it through `less' or `more' !");
|
|
"Options marked [*] produce a lot of output - pipe it through `less' or `more' !");
|
|
|
|
|
|
|
|
-const struct cmdinfo *cipaction = NULL;
|
|
|
|
|
int f_pending=0, f_recursive=0, f_alsoselect=1, f_skipsame=0, f_noact=0;
|
|
int f_pending=0, f_recursive=0, f_alsoselect=1, f_skipsame=0, f_noact=0;
|
|
|
int f_autodeconf=0, f_nodebsig=0;
|
|
int f_autodeconf=0, f_nodebsig=0;
|
|
|
int f_triggers = 0;
|
|
int f_triggers = 0;
|
|
@@ -219,17 +218,6 @@ static const struct forceinfo {
|
|
|
{ NULL }
|
|
{ NULL }
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-static void setaction(const struct cmdinfo *cip, const char *value) {
|
|
|
|
|
- if (cipaction)
|
|
|
|
|
- badusage(_("conflicting actions -%c (--%s) and -%c (--%s)"),
|
|
|
|
|
- cip->oshort, cip->olong, cipaction->oshort, cipaction->olong);
|
|
|
|
|
- cipaction= cip;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-static void setobsolete(const struct cmdinfo *cip, const char *value) {
|
|
|
|
|
- warning(_("obsolete option '--%s'\n"), cip->olong);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
static void setdebug(const struct cmdinfo *cpi, const char *value) {
|
|
static void setdebug(const struct cmdinfo *cpi, const char *value) {
|
|
|
char *endp;
|
|
char *endp;
|
|
|
|
|
|
|
@@ -464,10 +452,6 @@ static const struct cmdinfo cmdinfos[]= {
|
|
|
* The action entries are made with the ACTION macro, as they all
|
|
* The action entries are made with the ACTION macro, as they all
|
|
|
* have a very similar structure.
|
|
* have a very similar structure.
|
|
|
*/
|
|
*/
|
|
|
-#define ACTION(longopt,shortopt,code,function) \
|
|
|
|
|
- { longopt, shortopt, 0, NULL, NULL, setaction, code, NULL, (voidfnp)function }
|
|
|
|
|
-#define OBSOLETE(longopt,shortopt) \
|
|
|
|
|
- { longopt, shortopt, 0, NULL, NULL, setobsolete, 0, NULL, NULL }
|
|
|
|
|
#define ACTIONBACKEND(longopt, shortopt, backend) \
|
|
#define ACTIONBACKEND(longopt, shortopt, backend) \
|
|
|
{ longopt, shortopt, 0, NULL, NULL, setaction, 0, (void *)backend, (voidfnp)execbackend }
|
|
{ longopt, shortopt, 0, NULL, NULL, setaction, 0, (void *)backend, (voidfnp)execbackend }
|
|
|
|
|
|