rename $can_str_param_fmap to $param_mapping_func
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 2 Mar 2018 11:37:20 +0000 (12:37 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Mar 2018 07:47:00 +0000 (08:47 +0100)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
src/PVE/CLIHandler.pm

index 736e5ec..33b7aca 100644 (file)
@@ -118,7 +118,7 @@ sub generate_usage_str {
     $indent //= '';
 
     my $can_read_pass = $cli_handler_class->can('read_password');
-    my $can_str_param_fmap = $cli_handler_class->can('string_param_file_mapping');
+    my $param_mapping_func = $cli_handler_class->can('string_param_file_mapping');
 
     my ($subcmd, $def) = resolve_cmd($cmd);
 
@@ -138,7 +138,7 @@ sub generate_usage_str {
                    $str .= $indent;
                    $str .= $class->usage_str($name, "$prefix $cmd", $arg_param,
                                              $fixed_param, $format,
-                                             $can_read_pass, $can_str_param_fmap);
+                                             $can_read_pass, $param_mapping_func);
                    $oldclass = $class;
 
                } elsif (defined($def->{$cmd}->{alias}) && ($format eq 'asciidoc')) {
@@ -162,7 +162,7 @@ sub generate_usage_str {
 
            $str .= $indent;
            $str .= $class->usage_str($name, $prefix, $arg_param, $fixed_param, $format,
-                                     $can_read_pass, $can_str_param_fmap);
+                                     $can_read_pass, $param_mapping_func);
        }
        return $str;
     };