From ec2d39d024b6efcf4c20ad27f664af9289230292 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 19 Mar 2008 22:26:45 +0000 Subject: Just warn about the incorrect service. Let the right service be more explanitory about missing options. --- src/rc/rc-applets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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]))) -- cgit v1.2.3