aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2015-03-02 15:26:05 +0100
committerGravatar Steven Schubiger <stsc@refcnt.org> 2015-03-02 15:26:05 +0100
commit35fbd9e9d339d3c338f089cb9802b152c3dc01fd (patch)
treef7cabc8f7b3dc24c1d43053d80556e109e96717a
parenta61494ccfa8ca882455a194193c432aeb204ea44 (diff)
downloadcolorize-35fbd9e9d339d3c338f089cb9802b152c3dc01fd.tar.gz
colorize-35fbd9e9d339d3c338f089cb9802b152c3dc01fd.tar.bz2
Convert short version option to uppercase
-rw-r--r--colorize.16
-rw-r--r--colorize.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/colorize.1 b/colorize.1
index c6f0bdb..e6bab8b 100644
--- a/colorize.1
+++ b/colorize.1
@@ -1,4 +1,4 @@
-.TH COLORIZE 1 "2014-01-02" "colorize v0.55" "User Commands"
+.TH COLORIZE 1 "2015-03-02" "colorize v0.55" "User Commands"
.SH NAME
colorize \- colorize text with escape sequences
.SH SYNOPSIS
@@ -8,7 +8,7 @@ colorize \- colorize text with escape sequences
.PP
\fBcolorize\fR \-\-clean[\-all] [\fIfile\fR]
.PP
-\fBcolorize\fR \-hv
+\fBcolorize\fR \-hV
.SH DESCRIPTION
Colorizes text read from standard input stream or file by using ANSI
escape sequences (and also vice versa, i.e. cleaning text from sequences)
@@ -40,7 +40,7 @@ text color to be excluded when selecting a random foreground color
.BR \-h ", " \-\-help
show help screen and exit
.TP
-.BR \-v ", " \-\-version
+.BR \-V ", " \-\-version
display version data and exit
.SH NOTES
The list of color escape sequence codes being emitted and omitted is
diff --git a/colorize.c b/colorize.c
index 230d4a4..9bd5c78 100644
--- a/colorize.c
+++ b/colorize.c
@@ -286,7 +286,7 @@ main (int argc, char **argv)
log = open_file (DEBUG_FILE, "w");
#endif
- while ((opt = getopt_long (argc, argv, "hv", long_opts, NULL)) != -1)
+ while ((opt = getopt_long (argc, argv, "hV", long_opts, NULL)) != -1)
{
PARSE_OPT:
switch (opt)
@@ -330,7 +330,7 @@ main (int argc, char **argv)
break;
case 'h':
SET_OPT_TYPE (OPT_HELP);
- case 'v':
+ case 'V':
SET_OPT_TYPE (OPT_VERSION);
case '?':
print_hint ();
@@ -411,7 +411,7 @@ print_help (void)
printf ("\t\t --clean-all\n");
printf ("\t\t --exclude-random\n");
printf ("\t\t-h, --help\n");
- printf ("\t\t-v, --version\n\n");
+ printf ("\t\t-V, --version\n\n");
}
static void