Skip to content

Commit

Permalink
Quit when an option isn't known about, instead of just ignoring it
Browse files Browse the repository at this point in the history
  • Loading branch information
chilts committed May 21, 2011
1 parent 044b315 commit 3497e1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/AwsSum/Input.pm
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ sub process_args {
}
else {
# looks like an option, but we don't know about it
print STDERR "Warning: Unknown option '$this'\n";
print STDERR "Warning: Unknown option '$this' for command '$service:$command'\n";
exit 2;
}
}
}
Expand Down

0 comments on commit 3497e1a

Please sign in to comment.