From 17a26cb76ab04c0cdd33acca2d64b3d3397456e4 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 7 Sep 2019 00:18:29 +0200 Subject: [PATCH] shorthand -C to disable color There is precedent for capitalisation to negate, along with +c which is not supported by Getopt::Long. --- graph | 1 + 1 file changed, 1 insertion(+) diff --git a/graph b/graph index 41d858a..8144868 100755 --- a/graph +++ b/graph @@ -16,6 +16,7 @@ sub podexit { my %opt; GetOptions(\%opt, 'color|c!', + 'C' => sub { $opt{color} = 0 }, 'interval|t:i', 'trim|length|l=s' => sub { my ($optname, $optval) = @_; -- 2.30.0