Simpify detection of no options.

This commit is contained in:
Eric Andersen 2001-03-19 19:40:43 +00:00
parent 2ccfef2004
commit 8269396491
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ extern int rm_main(int argc, char **argv)
}
}
if ((argc-optind) < 1 && forceFlag == FALSE) {
if (argc == optind && forceFlag == FALSE) {
show_usage();
}
#ifdef BB_FEATURE_RM_INTERACTIVE

2
rm.c
View File

@ -112,7 +112,7 @@ extern int rm_main(int argc, char **argv)
}
}
if ((argc-optind) < 1 && forceFlag == FALSE) {
if (argc == optind && forceFlag == FALSE) {
show_usage();
}
#ifdef BB_FEATURE_RM_INTERACTIVE