diff options
author | Paul Fox <pgf@brightstareng.com> | 2005-08-01 19:33:30 +0000 |
---|---|---|
committer | Paul Fox <pgf@brightstareng.com> | 2005-08-01 19:33:30 +0000 |
commit | 156dc41cbc5f6d063ee641d4bb18055f4ae1e3f5 (patch) | |
tree | 7c84655b2121802fc8e6af14156b606ec041a054 /include | |
parent | fc2256a6ca7f943d671edaceac1ed1dfe3d1751c (diff) |
commiting patch from bug 71:
0000071: patch: implement "--color" option for ls coloring control
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h index 967ab3f19..dad6078cd 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1602,6 +1602,11 @@ #else # define USAGE_AUTOWIDTH(a) #endif +#ifdef CONFIG_FEATURE_LS_COLOR + #define USAGE_LS_COLOR(a) a +#else + #define USAGE_LS_COLOR(a) +#endif #define ls_trivial_usage \ "[-1Aa" USAGE_LS_TIMESTAMPS("c") "Cd" USAGE_LS_TIMESTAMPS("e") USAGE_LS_FILETYPES("F") "iln" USAGE_LS_FILETYPES("p") USAGE_LS_FOLLOWLINKS("L") USAGE_LS_RECURSIVE("R") USAGE_LS_SORTFILES("rS") "s" USAGE_AUTOWIDTH("T") USAGE_LS_TIMESTAMPS("tu") USAGE_LS_SORTFILES("v") USAGE_AUTOWIDTH("w") "x" USAGE_LS_SORTFILES("X") USAGE_HUMAN_READABLE("h") USAGE_NOT_HUMAN_READABLE("") "k" USAGE_SELINUX("K") "] [filenames...]" @@ -1613,6 +1618,7 @@ "\t-a\tdo not hide entries starting with .\n" \ "\t-C\tlist entries by columns\n" \ USAGE_LS_TIMESTAMPS("\t-c\twith -l: show ctime\n") \ + USAGE_LS_COLOR("\t--color[={always,never,auto}]\tto control coloring\n") \ "\t-d\tlist directory entries instead of contents\n" \ USAGE_LS_TIMESTAMPS("\t-e\tlist both full date and full time\n") \ USAGE_LS_FILETYPES("\t-F\tappend indicator (one of */=@|) to entries\n") \ |