mu: improve command-line handling

- Remove some dead code
- Make error messages a bit more user-friendly.
- Small cleanups
- Add unit tests and actually run them
This commit is contained in:
Dirk-Jan C. Binnema
2026-07-25 18:58:54 +03:00
committed by Seth Ladygo
parent 497b3db074
commit 9cf9531acc
5 changed files with 342 additions and 810 deletions

View File

@ -121,6 +121,15 @@ test('test-cmd-query',
build_by_default: false,
dependencies: [glib_dep, config_h_dep, lib_mu_dep]))
test('test-options',
executable('test-options',
'../mu-options.cc',
install: false,
build_by_default: false,
cpp_args: ['-DBUILD_TESTS',
'-DMU_SCRIPTS_DIR="'+ join_paths(datadir, 'mu', 'scripts') + '"'],
dependencies: [glib_dep, config_h_dep, cli11_dep, lib_mu_dep]))
gmime_test = executable(
'gmime-test', [
'gmime-test.c'