Allow 'del' to work as a command
This commit is contained in:
parent
eba9b8ac14
commit
e0a29e41a2
@ -163,7 +163,8 @@ int rc_update (int argc, char **argv)
|
|||||||
if (optind < argc) {
|
if (optind < argc) {
|
||||||
if (strcmp (argv[optind], "add") == 0)
|
if (strcmp (argv[optind], "add") == 0)
|
||||||
action = DOADD;
|
action = DOADD;
|
||||||
else if (strcmp (argv[optind], "delete") == 0)
|
else if (strcmp (argv[optind], "delete") == 0 ||
|
||||||
|
strcmp (argv[optind], "del") == 0)
|
||||||
action = DODELETE;
|
action = DODELETE;
|
||||||
else if (strcmp (argv[optind], "show") == 0)
|
else if (strcmp (argv[optind], "show") == 0)
|
||||||
action = DOSHOW;
|
action = DOSHOW;
|
||||||
|
Loading…
Reference in New Issue
Block a user