diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2005-06-29 22:50:18 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2005-06-29 22:50:18 +0000 |
commit | af3b956259bd202a8e4d749e0ef04969cbd580e9 (patch) | |
tree | 39cf45ad1287891fc5da9bbfa0ee08848761339a /usr.sbin/pkg_add | |
parent | 5639bdbe3a40339ddc821ed47dec8963b8750c5e (diff) |
make Getopt show full option name.
noticed by deraadt@
Diffstat (limited to 'usr.sbin/pkg_add')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Getopt.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Getopt.pm b/usr.sbin/pkg_add/OpenBSD/Getopt.pm index 143c9aaf8e0..e0ef4b11efb 100644 --- a/usr.sbin/pkg_add/OpenBSD/Getopt.pm +++ b/usr.sbin/pkg_add/OpenBSD/Getopt.pm @@ -35,7 +35,7 @@ sub getopts($;$) if ($args =~ m/\Q$opt\E(\:)?/) { if ($1 eq ':') { if ($other eq '') { - die "no argument for option $opt" unless @ARGV; + die "no argument for option -$opt" unless @ARGV; $other = shift @ARGV; } handle_option($opt, $hash, $other); @@ -47,7 +47,7 @@ sub getopts($;$) } } } else { - die "Unknown option $opt"; + die "Unknown option -$opt"; } } local $Exporter::ExportLevel = 1; |