]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/CLIHandler.pm
cli: only show subcommand specific usage if command incomplete
[pve-common.git] / src / PVE / CLIHandler.pm
index 49a459ba26299877c3d2abcd53feb0085c50eb65..489ff979798fd63b1078f95bcaaceb375d5b0c75 100644 (file)
@@ -491,7 +491,7 @@ my $handle_cmd  = sub {
     }
 
     # checked special commands, if def is still a hash we got an incomplete sub command
-    $abort->("incomplete command '$cmd_str'") if ref($def) eq 'HASH';
+    $abort->("incomplete command '$cmd_str'", $args) if ref($def) eq 'HASH';
 
     &$preparefunc() if $preparefunc;