From c688696100c24b688afd31a5e9d86174050edf2a Mon Sep 17 00:00:00 2001 From: dormando Date: Fri, 30 Mar 2012 14:35:31 -0700 Subject: [PATCH] clearer error if missing --file arg --- mogupload | 1 + 1 file changed, 1 insertion(+) diff --git a/mogupload b/mogupload index 85015b4..99e4a4c 100755 --- a/mogupload +++ b/mogupload @@ -67,6 +67,7 @@ my $c = $util->getopts($usage, qw/class=s key=s file=s/); my $mogc = $util->client; my $filename = $c->{file}; +die "Must specify a file to upload with --file" unless $filename; my $fh; my $size = 0;