Just warn about the incorrect service. Let the right service be more explanitory about missing options.
This commit is contained in:
parent
3b888b385a
commit
ec2d39d024
@ -366,8 +366,8 @@ static int rc_service(_unused int argc, char **argv)
|
|||||||
{
|
{
|
||||||
char *service;
|
char *service;
|
||||||
|
|
||||||
if (argc < 3)
|
if (argc < 2)
|
||||||
eerrorx("%s: you need to specify a service and command(s)",
|
eerrorx("%s: you need to specify a service",
|
||||||
applet);
|
applet);
|
||||||
|
|
||||||
if (!(service = rc_service_resolve(argv[1])))
|
if (!(service = rc_service_resolve(argv[1])))
|
||||||
|
Loading…
Reference in New Issue
Block a user