mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 21:21:54 +00:00
kvm tools: Add OPT_GROUP to cmdline parser
Add the OPT_GROUP parser option to allow the creation of an organized help menu. Used code taken from the git project. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
@@ -132,6 +132,12 @@ intptr_t defval;
|
||||
.help = (h) \
|
||||
}
|
||||
|
||||
#define OPT_GROUP(h) \
|
||||
{ \
|
||||
.type = OPTION_GROUP, \
|
||||
.help = (h) \
|
||||
}
|
||||
|
||||
#define OPT_END() { .type = OPTION_END }
|
||||
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user