aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/uri5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/uri b/bin/uri
index 5466c09..4e57f7c 100755
--- a/bin/uri
+++ b/bin/uri
@@ -51,7 +51,10 @@ for (@ARGV) {
}
my %opts;
-Getopt::Std::getopts('edh', \%opts);
+if (!Getopt::Std::getopts('edh', \%opts)) {
+ usage *STDERR;
+ exit 2;
+}
if ($opts{h}) {
usage *STDOUT;