aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-24 13:54:24 +0000
committerRoy Marples <roy@marples.name>2007-12-24 13:54:24 +0000
commit5ee9dfff6d71304015ed95c2a998b925c849db48 (patch)
tree30326e411f863cc2e4f6fd522f8474d5d90cd765
parent28a74e21255e798e52940f2f56eceb9690559c89 (diff)
rc-update show not default to show
-rw-r--r--src/rc-update.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rc-update.c b/src/rc-update.c
index eb383ba8..4f07503f 100644
--- a/src/rc-update.c
+++ b/src/rc-update.c
@@ -179,9 +179,6 @@ int rc_update (int argc, char **argv)
}
}
- if (! action)
- usage (EXIT_FAILURE);
-
verbose = rc_yesno (getenv ("EINFO_VERBOSE"));
if ((action & DOSHOW && action != DOSHOW) ||
@@ -204,8 +201,8 @@ int rc_update (int argc, char **argv)
else
eerrorx ("%s: invalid command `%s'", applet, argv[optind]);
}
- if (! action && opt)
- action = DOSHOW;
+ if (! action)
+ usage (EXIT_FAILURE);
}
if (optind >= argc) {