syncqt.pl: say "ERROR" when it's an error
Change-Id: I0f2ce894387048f78465ffff141cdae9ea760175 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
bdd4ddd8fa
commit
3304ea8f0e
@ -764,7 +764,7 @@ while ( @ARGV ) {
|
||||
$var = "version";
|
||||
$val = shift @ARGV;
|
||||
} elsif($arg =~/^-/) {
|
||||
print STDERR "Unknown option: $arg\n\n" if (!$var);
|
||||
print STDERR "ERROR: Unknown option: $arg\n\n" if (!$var);
|
||||
showUsage();
|
||||
} else {
|
||||
$basedir = locateSyncProfile($arg);
|
||||
@ -777,7 +777,7 @@ while ( @ARGV ) {
|
||||
|
||||
#do something
|
||||
if(!$var || $var eq "show_help") {
|
||||
print STDERR "Unknown option: $arg\n\n" if (!$var);
|
||||
print STDERR "ERROR: Unknown option: $arg\n\n" if (!$var);
|
||||
showUsage();
|
||||
} elsif ($var eq "copy") {
|
||||
if($val eq "yes") {
|
||||
|
Loading…
Reference in New Issue
Block a user