[clap-v3-utils] Use `Arg::new` in place of `Arg::with_name` (#491)
This commit is contained in:
parent
18c32aba35
commit
c5b9196df7
|
@ -16,7 +16,7 @@ pub const COMPUTE_UNIT_LIMIT_ARG: ArgConstant<'static> = ArgConstant {
|
|||
};
|
||||
|
||||
pub fn compute_unit_price_arg<'a>() -> Arg<'a> {
|
||||
Arg::with_name(COMPUTE_UNIT_PRICE_ARG.name)
|
||||
Arg::new(COMPUTE_UNIT_PRICE_ARG.name)
|
||||
.long(COMPUTE_UNIT_PRICE_ARG.long)
|
||||
.takes_value(true)
|
||||
.value_name("COMPUTE-UNIT-PRICE")
|
||||
|
@ -25,7 +25,7 @@ pub fn compute_unit_price_arg<'a>() -> Arg<'a> {
|
|||
}
|
||||
|
||||
pub fn compute_unit_limit_arg<'a>() -> Arg<'a> {
|
||||
Arg::with_name(COMPUTE_UNIT_LIMIT_ARG.name)
|
||||
Arg::new(COMPUTE_UNIT_LIMIT_ARG.name)
|
||||
.long(COMPUTE_UNIT_LIMIT_ARG.long)
|
||||
.takes_value(true)
|
||||
.value_name("COMPUTE-UNIT-LIMIT")
|
||||
|
|
Loading…
Reference in New Issue