From 5ccb750222f0e8d79da0af523f3f57d9b8f9ec23 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 30 Sep 2024 10:25:59 +0200 Subject: [PATCH] exm2eml: show named property mnemonics when -p is used twice --- tools/exm2eml.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/exm2eml.cpp b/tools/exm2eml.cpp index 55217aa2a..03c256a88 100644 --- a/tools/exm2eml.cpp +++ b/tools/exm2eml.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "genimport.hpp" #include "exch/midb/system_services.hpp" @@ -46,7 +47,7 @@ static unsigned int g_export_mode = EXPORT_MAIL; static int g_allday_mode = -1; static constexpr HXoption g_options_table[] = { {nullptr, 'Y', HXTYPE_INT, &g_allday_mode, nullptr, nullptr, 0, "Allday emission mode (default=-1, YMDHMS=0, YMD=1)"}, - {nullptr, 'p', HXTYPE_NONE, &g_show_props, nullptr, nullptr, 0, "Show properties in detail (if -t)"}, + {nullptr, 'p', HXTYPE_NONE | HXOPT_INC, &g_show_props, nullptr, nullptr, 0, "Show properties in detail (if -t)"}, {nullptr, 't', HXTYPE_NONE, &g_show_tree, nullptr, nullptr, 0, "Show tree-based analysis of the archive"}, {nullptr, 'u', HXTYPE_STRING, &g_username, nullptr, nullptr, 0, "Username of store to export from", "EMAILADDR"}, {"ical", 0, HXTYPE_VAL, &g_export_mode, nullptr, nullptr, EXPORT_ICAL, "Export as calendar object"}, @@ -123,6 +124,7 @@ int main(int argc, char **argv) try } if (g_allday_mode >= 0) g_oxcical_allday_ymd = g_allday_mode; + textmaps_init(PKGDATADIR); g_config_file = config_file_prg(nullptr, "midb.cfg", exm2eml_cfg_defaults); if (g_config_file == nullptr) {