mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-02 08:10:56 +00:00
Merge pull request #2063 from marcosps/lxcconfig_help
lxc_config: Add -h and --help flags handler
This commit is contained in:
commit
22840b791d
@ -64,7 +64,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
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]);
|
||||
if (strcmp(argv[1], "-l") == 0)
|
||||
list_config_items();
|
||||
|
Loading…
Reference in New Issue
Block a user