diff options
-rwxr-xr-x | urpmi | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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)) { |