diff options
-rw-r--r-- | mkusage.pl | 3 | ||||
-rw-r--r-- | usage.c | 1 | ||||
-rw-r--r-- | uxd.1 | 8 | ||||
-rw-r--r-- | uxd.rst | 6 |
4 files changed, 17 insertions, 1 deletions
@@ -4,7 +4,8 @@ print "char *usage_opts[] = {\n"; while(<>) { chomp; - if(/^-[a-zA-Z\d]/) { + next if /^---/; + if(/^-[-a-zA-Z\d]/) { $opt = $_; next; } @@ -1,4 +1,5 @@ char *usage_opts[] = { + " --: no more options.", " -1: don't alternate colors for normal characters.", " -b: bold color output.", " -c nnnnn: colors (2 to 5 digits, 0 to 7).", @@ -69,6 +69,14 @@ as \fIK\fP, \fIM\fP, and \fIG\fP for power\-of\-10 based (e.g. \fI1K\fP is 1000 . .INDENT 0.0 .TP +.B \-\- +No more options; whatever comes after this is a filename, even if it +begins with \fB\-\fP\&. +.UNINDENT +.\" no more options. +. +.INDENT 0.0 +.TP .B \-1 Don\(aqt alternate colors for normal characters. .UNINDENT @@ -58,6 +58,12 @@ as *K*, *M*, and *G* for power-of-10 based (e.g. *1K* is 1000 bytes). .. the comments are turned into the --help message by mkusage.pl. +-- + No more options; whatever comes after this is a filename, even if it + begins with **-**. + +.. no more options. + -1 Don't alternate colors for normal characters. |