power-utils: Add --compare option
This option is to get a latest version from a list of PSU versions.
Due to the --compare option requires a list of strings and only one
option is supported at the same time, it's easier to switch to CLI11 to
parse the arguments.
Also add --raw option that outputs the text without linefeed.
Tested: Verify both --get-version and --compare works on Witherspoon.
Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: Idec75e3a5699eba8ba587e74824431993fe10c4c
diff --git a/tools/power-utils/meson.build b/tools/power-utils/meson.build
index fa193be..4f0d53f 100644
--- a/tools/power-utils/meson.build
+++ b/tools/power-utils/meson.build
@@ -1,6 +1,5 @@
psutils = executable(
'psutils',
- 'argument.cpp',
'version.cpp',
'main.cpp',
dependencies: [
@@ -13,3 +12,5 @@
libpower,
]
)
+
+subdir('test')