mu: improve command help

This commit is contained in:
Dirk-Jan C. Binnema
2025-08-25 23:10:57 +03:00
committed by Seth Ladygo
parent 013233c041
commit 3e5ef67650

View File

@ -735,15 +735,15 @@ static constexpr
AssocPairs<SubCommand, CommandInfo, Options::SubCommandNum> SubCommandInfos= {{ AssocPairs<SubCommand, CommandInfo, Options::SubCommandNum> SubCommandInfos= {{
{ SubCommand::Add, { SubCommand::Add,
{ Category::NeedsWritableStore, { Category::NeedsWritableStore,
"add", "Add message(s) to the database", sub_add} "add", "Add messages to the database", sub_add}
}, },
{ SubCommand::Cfind, { SubCommand::Cfind,
{ Category::NeedsReadOnlyStore, { Category::NeedsReadOnlyStore,
"cfind", "Find contacts matching pattern", sub_cfind} "cfind", "Find contacts matching some pattern", sub_cfind}
}, },
{ SubCommand::Extract, { SubCommand::Extract,
{Category::None, {Category::None,
"extract", "Extract MIME-parts from messages", sub_extract} "extract", "Extract attachements and other MIME-parts", sub_extract}
}, },
{ SubCommand::Fields, { SubCommand::Fields,
{Category::None, {Category::None,
@ -751,7 +751,7 @@ AssocPairs<SubCommand, CommandInfo, Options::SubCommandNum> SubCommandInfos= {{
}, },
{ SubCommand::Find, { SubCommand::Find,
{Category::NeedsReadOnlyStore, {Category::NeedsReadOnlyStore,
"find", "Find messages matching query", sub_find } "find", "Find messages matching some query", sub_find }
}, },
{ SubCommand::Help, { SubCommand::Help,
{Category::None, {Category::None,
@ -759,19 +759,19 @@ AssocPairs<SubCommand, CommandInfo, Options::SubCommandNum> SubCommandInfos= {{
}, },
{ SubCommand::Index, { SubCommand::Index,
{Category::NeedsWritableStore, {Category::NeedsWritableStore,
"index", "Store message information in the database", sub_index } "index", "Scan maildirs and store information", sub_index }
}, },
{ SubCommand::Info, { SubCommand::Info,
{Category::NeedsReadOnlyStore, {Category::NeedsReadOnlyStore,
"info", "Show information", sub_info } "info", "Show information about mu", sub_info }
}, },
{ SubCommand::Init, { SubCommand::Init,
{Category::NeedsWritableStore, {Category::NeedsWritableStore,
"init", "Initialize the database", sub_init } "init", "Initialize the mu database", sub_init }
}, },
{ SubCommand::Label, { SubCommand::Label,
{Category::None, // note Store handled on sub-subcommmands {Category::None, // note Store handled on sub-subcommmands
"label", "Add/remove labels", sub_label } "label", "Add/remove labels form messages", sub_label }
}, },
{ SubCommand::Mkdir, { SubCommand::Mkdir,
{Category::None, {Category::None,
@ -779,7 +779,7 @@ AssocPairs<SubCommand, CommandInfo, Options::SubCommandNum> SubCommandInfos= {{
}, },
{ SubCommand::Move, { SubCommand::Move,
{Category::NeedsWritableStore, {Category::NeedsWritableStore,
"move", "Move a message or change flags", sub_move } "move", "Move a message or change its flags", sub_move }
}, },
{ SubCommand::Remove, { SubCommand::Remove,
{Category::NeedsWritableStore, {Category::NeedsWritableStore,
@ -787,7 +787,7 @@ AssocPairs<SubCommand, CommandInfo, Options::SubCommandNum> SubCommandInfos= {{
}, },
{ SubCommand::Scm, { SubCommand::Scm,
{Category::NeedsReadOnlyStore, {Category::NeedsReadOnlyStore,
"scm", "Start Guile/Scheme shell",sub_scm} "scm", "Start Guile/Scheme shell or run script",sub_scm}
}, },
{ SubCommand::Script, { SubCommand::Script,
// Note: SubCommand::Script is special; there's no literal // Note: SubCommand::Script is special; there's no literal
@ -906,7 +906,7 @@ Options::make(int argc, char *argv[])
CLI::App app{"mu mail indexer/searcher", "mu"}; CLI::App app{"mu mail indexer/searcher", "mu"};
app.description(R"(mu mail indexer/searcher app.description(R"(mu mail indexer/searcher
Copyright (C) 2008-2023 Dirk-Jan C. Binnema Copyright (C) 2008-2025 Dirk-Jan C. Binnema
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. This is free software: you are free to change and redistribute it.