Skip to content

Commit

Permalink
Added value
Browse files Browse the repository at this point in the history
  • Loading branch information
derickdiaz committed Jan 23, 2024
1 parent ca3296d commit 694ac7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dnf5/commands/download/download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ void DownloadCommand::set_argument_parser() {
auto urlprotocol = parser.add_new_named_arg("urlprotocol");
urlprotocol->set_long_name("urlprotocol");
urlprotocol->set_description("When running with --url, limit to specific protocols");
urlprotocol->set_has_value(true);
urlprotocol->set_arg_value_help("{http, https, rsync, ftp},...");
urlprotocol->set_parse_hook_func(
[this](
[[maybe_unused]] ArgumentParser::NamedArg * arg, [[maybe_unused]] const char * option, const char * value) {
Expand Down

0 comments on commit 694ac7f

Please sign in to comment.