diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2009-02-11 20:42:19 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2009-02-11 20:42:19 -0800 |
commit | b8000aad8257d10344618e46ed1d12885b8e5f99 (patch) | |
tree | ca74153709b330ae7177217f598c05fd4dce3c0a /show-patches.pl | |
parent | Remove debug. (diff) | |
download | mysql-extras-b8000aad8257d10344618e46ed1d12885b8e5f99.tar.gz mysql-extras-b8000aad8257d10344618e46ed1d12885b8e5f99.tar.bz2 mysql-extras-b8000aad8257d10344618e46ed1d12885b8e5f99.zip |
Add input checking.
Diffstat (limited to 'show-patches.pl')
-rw-r--r-- | show-patches.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/show-patches.pl b/show-patches.pl index 08450f7..786c038 100644 --- a/show-patches.pl +++ b/show-patches.pl @@ -4,6 +4,12 @@ use warnings; use strict; use lib "."; use PatchIndexer; +use Carp; + +unless($ARGV[0] and length($ARGV[0]) > 0 and $ARGV[1] and length($ARGV[1]) > 0) { + printf STDERR "Must give PN and PV arguments\n"; + exit 1; +} # Show patches for a given PN/PV my $PN = $ARGV[0]; |