Skip to content

Commit

Permalink
Added arch option to the download command
Browse files Browse the repository at this point in the history
  • Loading branch information
derickdiaz committed Feb 6, 2024
1 parent 0b8f9cc commit 473f66e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dnf5/commands/download/download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ void DownloadCommand::set_argument_parser() {
arch_option = {};
auto arch = parser.add_new_named_arg("arch");
arch->set_long_name("arch");
arch->set_description("limit the query to packages of given architectures.");
arch->set_description("Limit to packages of given architectures.");
arch->set_has_value(true);
arch->set_arg_value_help("ARCH...,");
arch->set_arg_value_help("ARCH,...");
arch->set_parse_hook_func(
[this](
[[maybe_unused]] ArgumentParser::NamedArg * arg, [[maybe_unused]] const char * option, const char * value) {
Expand Down
2 changes: 1 addition & 1 deletion doc/commands/download.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Options
| To be used together with ``--url``. It filters out the URLs to the specified protocols: ``http``, ``https``, ``ftp``, or ``file``. This option can be used multiple times.
``--arch``
| Filters the query to packages of given architectures. This option can be usd multiple times.
| Limit to packages of given architectures. This option can be used multiple times.

Examples
Expand Down

0 comments on commit 473f66e

Please sign in to comment.