Re: [pve-devel] [RFC common 6/9] cli: factor out generate usage string

2017-12-05 Thread Thomas Lamprecht
On 12/05/2017 09:01 AM, Dominik Csapak wrote: > i am not sure if intended or not, but this patch makes a huge difference in > how the help output is generated > > previous a command like > pveum help asdf > > would result in an output like this: > > 400 Parameter verification failed. > cmd: no

Re: [pve-devel] [RFC common 6/9] cli: factor out generate usage string

2017-12-05 Thread Dominik Csapak
i am not sure if intended or not, but this patch makes a huge difference in how the help output is generated previous a command like pveum help asdf would result in an output like this: 400 Parameter verification failed. cmd: no such command 'asdf' pveum help [] [OPTIONS] now it results in sh

[pve-devel] [RFC common 6/9] cli: factor out generate usage string

2017-11-06 Thread Thomas Lamprecht
reduce code reuse and prepare for sub commands --- src/PVE/CLIHandler.pm | 137 -- 1 file changed, 76 insertions(+), 61 deletions(-) diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index 4e3342f..64a35c1 100644 --- a/src/PVE/CLIHandler.pm