Skip to content

Commit

Permalink
Download cmd: Require at leats one argument/package to download
Browse files Browse the repository at this point in the history
  • Loading branch information
jrohel authored and kontura committed Nov 26, 2024
1 parent 341a75e commit 0003886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnf5/commands/download/download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void DownloadCommand::set_argument_parser() {
patterns_to_download_options = parser.add_new_values();
auto keys = parser.add_new_positional_arg(
"keys_to_match",
ArgumentParser::PositionalArg::UNLIMITED,
ArgumentParser::PositionalArg::AT_LEAST_ONE,
parser.add_init_value(std::unique_ptr<libdnf5::Option>(new libdnf5::OptionString(nullptr))),
patterns_to_download_options);
keys->set_description("List of keys to match");
Expand Down

0 comments on commit 0003886

Please sign in to comment.