explain spark option parameters
[barcat.git] / barcat
diff --git a/barcat b/barcat
index 9e4d0ae0feaf3de2ba64284b3f014f108b38a35b..1bcda801779e9a4028b07f5005b5217b5d5120e8 100755 (executable)
--- a/barcat
+++ b/barcat
@@ -47,7 +47,7 @@ GetOptions(\%opt,
                $opt{'graph-format'} = substr $_[1], 0, 1;
        },
        'spark:s' => sub {
-               $opt{spark} = [split //, $_[1] || '������▂▃▄▅▆▇█'];
+               $opt{spark} = [split //, $_[1] || '▁▂▃▄▅▆▇█'];
        },
        'stat|s!',
        'signal-stat=s',
@@ -356,6 +356,18 @@ or 68% of all entries.
 
 =back
 
+=item --spark[=<glyphs>]
+
+Replace lines by I<sparklines>,
+single characters corresponding to input values.
+A specified sequence of unicode characters will be used for
+Of a specified sequence of unicode characters,
+the first one will be used for non-values,
+the last one for the maximum,
+the second (if any) for the minimum,
+and any remaining will be distributed over the range of values.
+Unspecified, block fill glyphs U+2581-2588 will be used.
+
 =item -s, --stat
 
 Total statistics after all data.