diff options
author | Donnie Barnes <djb@redhat.com> | 1999-07-22 02:41:45 +0000 |
---|---|---|
committer | Donnie Barnes <djb@redhat.com> | 1999-07-22 02:41:45 +0000 |
commit | 03d8a966e3a8c1d2c14b1714af3f57e55aee1f95 (patch) | |
tree | f128ba00e40969840dca56d9cc27ea8e1dc2cae1 /src | |
parent | f5009f9ba7903d85e82d97df72ada4172f621a3f (diff) | |
download | initscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.tar initscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.tar.gz initscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.tar.bz2 initscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.tar.xz initscripts-03d8a966e3a8c1d2c14b1714af3f57e55aee1f95.zip |
added --oot option
Diffstat (limited to 'src')
-rw-r--r-- | src/usleep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/usleep.c b/src/usleep.c index 7d56599c..206d07b9 100644 --- a/src/usleep.c +++ b/src/usleep.c @@ -17,11 +17,14 @@ int main(int argc, char **argv) { unsigned long count; poptContext optCon; int showVersion = 0; + int showOot = 0; int rc; char * countStr = NULL; struct poptOption options[] = { { "version", 'v', POPT_ARG_NONE, &showVersion, 0, "Display the version of this program, and exit" }, + { "oot", 'o', POPT_ARG_NONE, &showOot, 0, + "oot says hey!" }, POPT_AUTOHELP { 0, 0, 0, 0, 0 } }; @@ -42,6 +45,11 @@ int main(int argc, char **argv) { return 0; } + if (showOot) { + printf("oot says hey!\n"); + return 0; + } + countStr = poptGetArg(optCon); if (countStr == NULL) count = 1; |