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
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
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