From 03d8a966e3a8c1d2c14b1714af3f57e55aee1f95 Mon Sep 17 00:00:00 2001 From: Donnie Barnes Date: Thu, 22 Jul 1999 02:41:45 +0000 Subject: added --oot option --- src/usleep.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/usleep.c') 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; -- cgit v1.2.1