diff --git a/meson.build b/meson.build index 5aa46cd579..d9308c28bc 100644 --- a/meson.build +++ b/meson.build @@ -183,7 +183,7 @@ conf.set_quoted('SYSTEM_SYSVRCND_PATH', sysvrcnd_path) conf.set_quoted('RC_LOCAL_SCRIPT_PATH_START', get_option('rc-local')) conf.set_quoted('RC_LOCAL_SCRIPT_PATH_STOP', get_option('halt-local')) -conf.set('ANSI_OK_COLOR', 'ANSI_' + get_option('ok-color').to_upper()) +conf.set('ANSI_OK_COLOR', 'ANSI_' + get_option('ok-color').underscorify().to_upper()) conf.set_quoted('USER_CONFIG_UNIT_PATH', join_paths(pkgsysconfdir, 'user')) conf.set_quoted('USER_DATA_UNIT_PATH', userunitdir) diff --git a/meson_options.txt b/meson_options.txt index 59fb20b0a4..cdd7edd450 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -300,9 +300,9 @@ option('install-tests', type : 'boolean', value : 'false', option('ok-color', type: 'combo', choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', - 'white', 'highlight_black', 'highlight_red', 'highlight_green', - 'highlight_yellow', 'highlight_blue', 'highlight_magenta', - 'highlight_cyan', 'highlight_white'], + 'white', 'highlight-black', 'highlight-red', 'highlight-green', + 'highlight-yellow', 'highlight-blue', 'highlight-magenta', + 'highlight-cyan', 'highlight-white'], value : 'green', description: 'color of the "OK" status message')