solana-clap-v3-utils 1.14.13

Solana utilities for the clap v3
Documentation
use {crate::ArgConstant, clap::Arg};

pub const MEMO_ARG: ArgConstant<'static> = ArgConstant {
    name: "memo",
    long: "--with-memo",
    help: "Specify a memo string to include in the transaction.",
};

pub fn memo_arg<'a>() -> Arg<'a> {
    Arg::new(MEMO_ARG.name)
        .long(MEMO_ARG.long)
        .takes_value(true)
        .value_name("MEMO")
        .help(MEMO_ARG.help)
}