diff --git a/lib/SLUB/LZA/TA/Command/info.pm b/lib/SLUB/LZA/TA/Command/info.pm index 688033d8cd7b190d62ef42632bc3bbb4767dcfd2..61c3ec6187f4ec056d0d51e5f694c2a7c00dadb0 100644 --- a/lib/SLUB/LZA/TA/Command/info.pm +++ b/lib/SLUB/LZA/TA/Command/info.pm @@ -18,17 +18,17 @@ sub description { return "$description" } sub opt_spec { - return ( - [ 'help|h', 'print usage message and exit', { shortcircuit => 1 } ], - [ 'target-version|V' => 'get current elasticsearch version', { shortcircuit => 1 } ], - [ 'version|v', 'print version information', { shortcircuit => 1 } ], + my @global_opts= SLUB::LZA::TA::common_global_opt_spec(); + my @local_opts = ( + [ 'target-version|T' => 'get current elasticsearch version', { shortcircuit => 1 } ], + [ 'version|V', 'print '.$0.' version information', { shortcircuit => 1 } ], ); + return (@global_opts, [], @local_opts); } sub validate_args { my ($self, $opt, $args) = @_; # no args allowed but options! $self->usage_error("No args allowed") if @$args; - SLUB::LZA::TA::validate_global(@_); return 1; }