Allow missing option.
This commit is contained in:
parent
8327e6a6f4
commit
590f489d1f
2
ts/ts.pl
2
ts/ts.pl
|
@ -3,7 +3,7 @@ use strict;
|
||||||
use POSIX;
|
use POSIX;
|
||||||
use Time::HiRes qw(gettimeofday);
|
use Time::HiRes qw(gettimeofday);
|
||||||
my $use_microseconds;
|
my $use_microseconds;
|
||||||
if ($ARGV[0] eq '-u') {
|
if (($ARGV[0] || "") eq '-u') {
|
||||||
$use_microseconds = 1;
|
$use_microseconds = 1;
|
||||||
shift;
|
shift;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue