[CRIU] [PATCH 06/20] compel --help: fix

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


This:
$ ./compel/compel-host --help
./compel/compel-host: option '--help' requires an argument

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

diff --git a/compel/src/main.c b/compel/src/main.c
index 7fa4d7c..b7d83bf 100644
--- a/compel/src/main.c
+++ b/compel/src/main.c
@@ -143,7 +143,7 @@ int main(int argc, char *argv[])
 		{ "sym-prefix",	required_argument,	0, 'p' },
 		{ "variable",	required_argument,	0, 'v' },
 		{ "pcrelocs",	required_argument,	0, 'r' },
-		{ "help",	required_argument,	0, 'h' },
+		{ "help",	no_argument,		0, 'h' },
 		{ "version",	no_argument,		0, 'V' },
 		{ "log-level",	required_argument,	0, 'l' },
 		{ },
-- 
2.7.4



More information about the CRIU mailing list