Commit 1a2c090a authored by Jason Rhinelander's avatar Jason Rhinelander
Browse files

Changed --decimal short option to -t

Added -d for --details
Added -l and --list as aliases for --nodetails
Made -X (and --HEX) actually work (it was mentioned in --help, but not handled in the code)
Added the long option names for format aliases to --help output
parent fbc50b66
......@@ -93,10 +93,12 @@ my %opts = (format => 'x,c', details => -1);
my $error;
GetOptions(
'help|h|?' => \$opts{help},
'details!' => \$opts{details},
'details|d!' => \$opts{details},
'list|l' => sub { $opts{details} = 0 },
'format|f=s' => \$opts{format},
'decimal|d' => sub { $opts{format} = 'd,c' },
'decimal|t' => sub { $opts{format} = 'd,c' },
'hex|x' => sub { $opts{format} = 'x,c' },
'HEX|X' => sub { $opts{format} = 'X,c' },
'octal|o' => sub { $opts{format} = 'o,c' },
'binary|b' => sub { $opts{format} = 'b,c' },
'unicode|u' => sub { $opts{format} = 'u,c' },
......@@ -329,14 +331,15 @@ character). If no FROM-TO pairs nor CHARACTERs are specified, characters from
Recognized options:
-h, -?, --help This help screen.
--[no]details Display [or not] character details [Default: display
-d, --[no]details Display [or not] character details [Default: display
details when not using a FROM-TO range]
-l, --list Alias for --nodetails
-s, --search="name" Searches for characters with unicode names containing
"name". Search is case-insensitive.
-r, --regex="regex" Like --search, but uses the supplied perl regular
expression.
Under --nodetails mode:
Under --nodetails/--list mode:
-f, --format=FORMAT Display character list in the specified FORMATs.
Formats are comma-separated; supported formats:
......@@ -347,13 +350,13 @@ Under --nodetails mode:
u - use U+12AB style hex formatting
c - the character (in UTF-8)
[Default: d,x,c]
-d Alias for --format=d,c
-x Alias for --format=x,c
-X Alias for --format=X,c
-u Alias for --format=u,c
-o Alias for --format=o,c
-b Alias for --format=b,c
-1 Don't put results in columns
-t, --decimal Alias for --format=d,c
-x, --hex Alias for --format=x,c
-X, --HEX Alias for --format=X,c
-u, --unicode Alias for --format=u,c
-o, --octal Alias for --format=o,c
-b, --binary Alias for --format=b,c
-1 Don't put results in multiple columns
Current unicode database version: @{[Unicode::UCD::UnicodeVersion]}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment