Commit 2ef66045 authored by Peter Pentchev's avatar Peter Pentchev

ethstats.p6: use 'note' instead of '$*ERR.say'.

parent 21d384ec
......@@ -140,7 +140,7 @@ sub format_line(Str $name, %dev)
my UInt $period = 10;
$opts.int('n', Nil, -> $v {
if $v < 1 {
$*ERR.say('The period must be a positive integer');
note 'The period must be a positive integer';
usage True;
}
$period = $v;
......@@ -149,7 +149,7 @@ sub format_line(Str $name, %dev)
my UInt $count = 0;
$opts.int('c', Nil, -> $v {
if $v < 1 {
$*ERR.say('The count must be a positive integer');
note 'The count must be a positive integer';
usage True;
}
$count = $v;
......@@ -161,7 +161,7 @@ sub format_line(Str $name, %dev)
$use_color = $*OUT.t;
$opts.bool('C', Nil, -> $v {
if %flags<M> {
$*ERR.say('The -C and -M options are mutually exclusive');
note 'The -C and -M options are mutually exclusive';
usage True;
}
%flags<C> = True;
......@@ -169,7 +169,7 @@ sub format_line(Str $name, %dev)
});
$opts.bool('M', Nil, -> $v {
if %flags<C> {
$*ERR.say('The -C and -M options are mutually exclusive');
note 'The -C and -M options are mutually exclusive';
usage True;
}
%flags<M> = True;
......
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