aboutsummaryrefslogtreecommitdiff
path: root/bin/ls/util.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2000-06-06 07:29:43 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2000-06-06 07:29:43 +0000
commita04eaf5b2ec41af88f8e90dfbffd7a9547ebba23 (patch)
treec2cf3b0acbdc194c9fbcee9adfb7d8e236ae296a /bin/ls/util.c
parent1bf1478a9fe4095b953d84b7652475e62acef93c (diff)
downloadsrc-a04eaf5b2ec41af88f8e90dfbffd7a9547ebba23.tar.gz
src-a04eaf5b2ec41af88f8e90dfbffd7a9547ebba23.zip
Add -G to usage: if COLORLS
Notes
Notes: svn path=/head/; revision=61324
Diffstat (limited to 'bin/ls/util.c')
-rw-r--r--bin/ls/util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c
index eea247587a9c..7239d9776abf 100644
--- a/bin/ls/util.c
+++ b/bin/ls/util.c
@@ -158,7 +158,12 @@ prn_octal(s)
void
usage()
{
- (void)fprintf(stderr, "usage: ls [-ACFHLPRTWacdfgiklnoqrstu1]"
+ (void)fprintf(stderr,
+#ifdef COLORLS
+ "usage: ls [-ACFGHLPRTWacdfgiklnoqrstu1]"
+#else
+ "usage: ls [-ACFHLPRTWacdfgiklnoqrstu1]"
+#endif
" [file ...]\n");
exit(1);
}