solana_clap_utils/memo.rs
1use {crate::ArgConstant, clap::Arg};
2
3pub const MEMO_ARG: ArgConstant<'static> = ArgConstant {
4 name: "memo",
5 long: "--with-memo",
6 help: "Specify a memo string to include in the transaction.",
7};
8
9pub fn memo_arg<'a, 'b>() -> Arg<'a, 'b> {
10 Arg::with_name(MEMO_ARG.name)
11 .long(MEMO_ARG.long)
12 .takes_value(true)
13 .value_name("MEMO")
14 .help(MEMO_ARG.help)
15}