]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/CLIFormatter.pm
cli: remove all output formatter magic from CLIHandler
[pve-common.git] / src / PVE / CLIFormatter.pm
index 7a92f7a286dbd630a34fe392e37d9cade211fe37..22cd8f2378c803bbc977646f1ff8468b62dc89fc 100644 (file)
@@ -374,7 +374,7 @@ sub print_api_result {
        $options = { %$options }; # copy
     }
 
-    my $format = $options->{format} // 'text';
+    my $format = $options->{'output-format'} // 'text';
 
     return if $result_schema->{type} eq 'null';