diff --git a/dnf5/commands/module/module_list.cpp b/dnf5/commands/module/module_list.cpp index cbbafe192..2689219b3 100644 --- a/dnf5/commands/module/module_list.cpp +++ b/dnf5/commands/module/module_list.cpp @@ -65,6 +65,7 @@ void ModuleListCommand::run() { } output::print_modulelist_table(query.list()); + output::print_modulelist_table_hint(); } } // namespace dnf5 diff --git a/include/libdnf5-cli/output/modulelist.hpp b/include/libdnf5-cli/output/modulelist.hpp index 06d8ffbe7..c7748bf64 100644 --- a/include/libdnf5-cli/output/modulelist.hpp +++ b/include/libdnf5-cli/output/modulelist.hpp @@ -39,6 +39,9 @@ namespace libdnf5::cli::output { enum { COL_MODULE_NAME, COL_MODULE_STREAM, COL_MODULE_PROFILES, COL_MODULE_SUMMARY }; +const std::string MODULELIST_TABLE_HINT = _("\nHint: [d]efault, [e]nabled, [x]disabled, [i]nstalled"); + + static struct libscols_table * create_modulelist_table() { struct libscols_table * table = scols_new_table(); if (libdnf5::cli::tty::is_interactive()) { @@ -111,6 +114,11 @@ void print_modulelist_table(Query & module_list) { } +void print_modulelist_table_hint() { + std::cout << MODULELIST_TABLE_HINT << std::endl; +} + + } // namespace libdnf5::cli::output #endif // LIBDNF_CLI_OUTPUT_MODULELIST_HPP