summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-06-06 07:29:43 +0000
committerache <ache@FreeBSD.org>2000-06-06 07:29:43 +0000
commit9b69330acf78e02491988b88bd6b83178e8f1b0e (patch)
tree2144ed444af99625c7a6aed36d654d1cb6fa4611 /bin
parent5659bb748429ddec1ff8ef3cfd911bb4c1074f39 (diff)
downloadFreeBSD-src-9b69330acf78e02491988b88bd6b83178e8f1b0e.zip
FreeBSD-src-9b69330acf78e02491988b88bd6b83178e8f1b0e.tar.gz
Add -G to usage: if COLORLS
Diffstat (limited to 'bin')
-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 eea2475..7239d97 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);
}
OpenPOWER on IntegriCloud