Unverified Commit 22840b79 by Christian Brauner Committed by GitHub

Merge pull request #2063 from marcosps/lxcconfig_help

lxc_config: Add -h and --help flags handler
parents c326c196 f63ac53e
...@@ -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