From 869d3d318ff3c17d74499f1216abfe3afa40590c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 22 May 2008 02:07:58 +0000 Subject: last: optional alternative sysv-like implementation (by Patricia Muscalu ) function old new delta last_main 448 917 +469 show_entry - 319 +319 packed_usage 24216 24268 +52 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 840/0) Total: 840 bytes --- include/usage.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/usage.h b/include/usage.h index cffe78220..1f4213a2e 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3504,9 +3504,15 @@ "lash is deprecated, please use hush" #define last_trivial_usage \ - "" + ""USE_FEATURE_LAST_FANCY("[-HW] [-f file]") #define last_full_usage "\n\n" \ - "Show listing of the last users that logged into the system" + "Show listing of the last users that logged into the system" \ + USE_FEATURE_LAST_FANCY( "\n" \ + "\nOptions:" \ + "\n -H Show header line" \ + "\n -W Display with no host column truncation" \ + "\n -f file Read from file instead of /var/log/wtmp" \ + ) #define sha1sum_trivial_usage \ "[OPTION] [FILEs...]" \ -- cgit v1.2.3