From 2493f3bae72ec11a03faabcc69b62e0fc6a82793 Mon Sep 17 00:00:00 2001 From: Jaroslav Rohel Date: Tue, 26 Nov 2024 09:46:23 +0100 Subject: [PATCH] Download cmd: Require at leats one argument/package to download --- dnf5/commands/download/download.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnf5/commands/download/download.cpp b/dnf5/commands/download/download.cpp index 5bc239137..48e3c7c5a 100644 --- a/dnf5/commands/download/download.cpp +++ b/dnf5/commands/download/download.cpp @@ -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(new libdnf5::OptionString(nullptr))), patterns_to_download_options); keys->set_description("List of keys to match");