Commit f63ac53e by Marcos Paulo de Souza

lxc_config: Add -h and --help flags handler

As the other tools already handle, show usage message when -h or --help are used. Signed-off-by: 's avatarMarcos Paulo de Souza <marcos.souza.org@gmail.com>
parent c326c196
...@@ -64,7 +64,8 @@ int main(int argc, char *argv[]) ...@@ -64,7 +64,8 @@ int main(int argc, char *argv[])
setenv("LXC_UPDATE_CONFIG_FORMAT", "1", 0); setenv("LXC_UPDATE_CONFIG_FORMAT", "1", 0);
if (argc < 2) if (argc < 2 || strcmp(argv[1], "-h") == 0 ||
strcmp(argv[1], "--help") == 0)
usage(argv[0]); usage(argv[0]);
if (strcmp(argv[1], "-l") == 0) if (strcmp(argv[1], "-l") == 0)
list_config_items(); list_config_items();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment