summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xurpmi9
1 files changed, 8 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index 1ef41c1d..da08fac8 100755
--- a/urpmi
+++ b/urpmi
@@ -172,7 +172,14 @@ if (grep { $_ eq '--restricted' } @ARGV) {
urpm::args::parse_cmdline(urpm => $urpm);
# Verify that arguments were given
-@ARGV || $auto_select or usage;
+unless (@ARGV || $auto_select) {
+ if ($urpm::args::options{bug}) {
+ print N("Error: To generate a bug report, specify the usual command-line arguments
+along with --bug.\n");
+ exit 1;
+ }
+ usage();
+}
# Process the rest of the arguments
while (defined($_ = shift @ARGV)) {