mirror of
https://github.com/djcb/mu.git
synced 2024-06-29 07:51:04 +02:00
parent
ade62fc67c
commit
a71b4f5e8d
|
@ -283,7 +283,9 @@ sub_extract(CLI::App& sub, Options& opts)
|
||||||
sub.add_option("--target-dir", opts.extract.targetdir,
|
sub.add_option("--target-dir", opts.extract.targetdir,
|
||||||
"Target directory for saving")
|
"Target directory for saving")
|
||||||
->type_name("<dir>")
|
->type_name("<dir>")
|
||||||
->default_str("<current>")->default_val(".");
|
->transform(ExpandPath, "expand path")
|
||||||
|
->default_str("<current>")
|
||||||
|
->default_val(".");
|
||||||
sub.add_flag("--uncooked,-u", opts.extract.uncooked,
|
sub.add_flag("--uncooked,-u", opts.extract.uncooked,
|
||||||
"Avoid massaging extracted file-names");
|
"Avoid massaging extracted file-names");
|
||||||
// optional; otherwise use standard-input
|
// optional; otherwise use standard-input
|
||||||
|
@ -398,7 +400,8 @@ sub_find(CLI::App& sub, Options& opts)
|
||||||
"Clear old links first");
|
"Clear old links first");
|
||||||
sub.add_option("--linksdir", opts.find.linksdir,
|
sub.add_option("--linksdir", opts.find.linksdir,
|
||||||
"Use bookmarked query")
|
"Use bookmarked query")
|
||||||
->type_name("<dir>");
|
->type_name("<dir>")
|
||||||
|
->transform(ExpandPath, "expand path");
|
||||||
|
|
||||||
sub.add_option("--summary-len", opts.find.summary_len,
|
sub.add_option("--summary-len", opts.find.summary_len,
|
||||||
"Use up to so many lines for the summary")
|
"Use up to so many lines for the summary")
|
||||||
|
@ -445,7 +448,8 @@ sub_init(CLI::App& sub, Options& opts)
|
||||||
{
|
{
|
||||||
sub.add_option("--maildir,-m", opts.init.maildir,
|
sub.add_option("--maildir,-m", opts.init.maildir,
|
||||||
"Top of the maildir")
|
"Top of the maildir")
|
||||||
->type_name("<maildir>");
|
->type_name("<maildir>")
|
||||||
|
->transform(ExpandPath, "expand path");
|
||||||
sub.add_option("--my-address", opts.init.my_addresses,
|
sub.add_option("--my-address", opts.init.my_addresses,
|
||||||
"Personal e-mail address or regexp")
|
"Personal e-mail address or regexp")
|
||||||
->type_name("<address>");
|
->type_name("<address>");
|
||||||
|
@ -769,7 +773,8 @@ There is NO WARRANTY, to the extent permitted by law.
|
||||||
sub->add_option("--muhome",
|
sub->add_option("--muhome",
|
||||||
opts.muhome, "Specify alternative mu directory")
|
opts.muhome, "Specify alternative mu directory")
|
||||||
->envname("MUHOME")
|
->envname("MUHOME")
|
||||||
->type_name("<dir>");
|
->type_name("<dir>")
|
||||||
|
->transform(ExpandPath, "expand path");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add scripts (if supported) as semi-subscommands as well */
|
/* add scripts (if supported) as semi-subscommands as well */
|
||||||
|
@ -858,10 +863,6 @@ test_ids()
|
||||||
|
|
||||||
#ifdef BUILD_TESTS
|
#ifdef BUILD_TESTS
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
enum struct TestEnum { A, B, C };
|
enum struct TestEnum { A, B, C };
|
||||||
constexpr AssocPairs<TestEnum, std::string_view, 3>
|
constexpr AssocPairs<TestEnum, std::string_view, 3>
|
||||||
test_epairs = {{
|
test_epairs = {{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user