@@ -18,7 +18,7 @@ use super::static_urls::*;
1818use super :: tanzu_cli:: tanzu_subcommands;
1919use crate :: config:: PreFlightSettings ;
2020use crate :: output:: TableStyle ;
21- use clap:: { Arg , ArgAction , ArgGroup , Command , crate_version, value_parser} ;
21+ use clap:: { Arg , ArgAction , ArgGroup , Command , crate_name , crate_version, value_parser} ;
2222use rabbitmq_http_client:: commons:: {
2323 BindingDestinationType , ChannelUseMode , ExchangeType , MessageTransferAcknowledgementMode ,
2424 PolicyTarget , QueueType , SupportedProtocol ,
@@ -413,10 +413,10 @@ pub fn parser(pre_flight_settings: PreFlightSettings) -> Command {
413413 vhost_limits_group,
414414 ] ;
415415
416- Command :: new ( "rabbitmqadmin" )
416+ Command :: new ( crate_name ! ( ) )
417417 . version ( crate_version ! ( ) )
418418 . author ( "The RabbitMQ Core Team" )
419- . about ( format ! ( "rabbitmqadmin gen 2, version: {}" , crate_version!( ) ) )
419+ . about ( format ! ( "{} gen 2, version: {}" , crate_name! ( ) , crate_version!( ) ) )
420420 . long_about ( format ! (
421421 "RabbitMQ CLI that uses the HTTP API. Version: {}" ,
422422 crate_version!( )
0 commit comments