This patch (1/3 is the effective part) adds support for sub-commands in the form of `pveum user add <userid>`. It correctly parses the current command format and, to my knowledge, generates identical help texts, man-pages and html docs. So it should be applicable even without any command line tools offering sub-commands.
Philip Abernethy (3): cli: prepare CLIHandler for handling sub-commands cli: code cleanup cli: whitespace cleanup src/PVE/CLIHandler.pm | 271 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 163 insertions(+), 108 deletions(-) -- 2.11.0 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel