aboutsummaryrefslogtreecommitdiff
path: root/src/rc-update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc-update.c')
-rw-r--r--src/rc-update.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rc-update.c b/src/rc-update.c
index 7c611d3c..3ab52fd1 100644
--- a/src/rc-update.c
+++ b/src/rc-update.c
@@ -146,9 +146,9 @@ static const char * const longopts_help[] = {
};
#include "_usage.c"
-#define DOADD (1 << 0)
-#define DODELETE (1 << 1)
-#define DOSHOW (1 << 2)
+#define DOADD (1 << 1)
+#define DODELETE (1 << 2)
+#define DOSHOW (1 << 3)
int rc_update (int argc, char **argv)
{
@@ -181,6 +181,9 @@ int rc_update (int argc, char **argv)
}
}
+ if (! action)
+ usage (EXIT_FAILURE);
+
verbose = rc_yesno (getenv ("EINFO_VERBOSE"));
if ((action & DOSHOW && action != DOSHOW) ||