From 2f46b664b7d7b51319d21b7c2d6b3ca817f5e1c4 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Wed, 19 Jul 2000 18:01:00 +0000 Subject: Add usage messages for applets without them. --- procps/uptime.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'procps/uptime.c') diff --git a/procps/uptime.c b/procps/uptime.c index efdbccf00..6a8bfa638 100644 --- a/procps/uptime.c +++ b/procps/uptime.c @@ -46,6 +46,9 @@ extern int uptime_main(int argc, char **argv) struct tm *current_time; time_t current_secs; + if (argc > 1 && strcmp(argv[1], "--help") == 0) + usage(uptime_usage); + time(¤t_secs); current_time = localtime(¤t_secs); -- cgit v1.2.3