aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-19 22:26:45 +0000
committerRoy Marples <roy@marples.name>2008-03-19 22:26:45 +0000
commitec2d39d024b6efcf4c20ad27f664af9289230292 (patch)
treee985413e5736fb8683745e6c342f954ac643d8ff
parent3b888b385aa9d34859d09b29e0738a60c97010d4 (diff)
Just warn about the incorrect service. Let the right service be more explanitory about missing options.
-rw-r--r--src/rc/rc-applets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc-applets.c b/src/rc/rc-applets.c
index 8a54a5ac..e67f8c1a 100644
--- a/src/rc/rc-applets.c
+++ b/src/rc/rc-applets.c
@@ -366,8 +366,8 @@ static int rc_service(_unused int argc, char **argv)
{
char *service;
- if (argc < 3)
- eerrorx("%s: you need to specify a service and command(s)",
+ if (argc < 2)
+ eerrorx("%s: you need to specify a service",
applet);
if (!(service = rc_service_resolve(argv[1])))