[CRIU] [PATCH 20/20] compel --help: complete

Kir Kolyshkin kir at openvz.org
Thu Dec 8 01:44:33 PST 2016


Now, when many useless options were dropped, it's easy to
provide a complete description of CLI in usage().

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 compel/src/main.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/compel/src/main.c b/compel/src/main.c
index ce1ee5d..8eaf375 100644
--- a/compel/src/main.c
+++ b/compel/src/main.c
@@ -136,9 +136,14 @@ static int usage(int rc) {
 
 	printf(
 " }\n"
-"  compel -f FILE -o FILE [...] hgen\n"
+"  compel -f FILE -o FILE -p NAME [-l N] hgen\n"
 "    -f, --file FILE		input (parasite object) file name\n"
 "    -o, --output FILE		output (header) file name\n"
+"    -p, --prefix NAME		prefix for var names\n"
+"    -l, --log-level NUM	log level (default: %d)\n"
+"  compel -h|--help\n"
+"  compel -V|--version\n"
+, DEFAULT_LOGLEVEL
 );
 
 	return rc;
-- 
2.7.4



More information about the CRIU mailing list