Hide deploy from cli subcommands (#20901) (#20951)

(cherry picked from commit af405f0ed7)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2021-10-25 20:03:44 +00:00
committed by GitHub
parent 66630804de
commit e84c57b659
2 changed files with 4 additions and 15 deletions

View File

@@ -385,6 +385,7 @@ impl ProgramSubCommands for App<'_, '_> {
.subcommand(
SubCommand::with_name("deploy")
.about("Deploy a program")
.setting(AppSettings::Hidden)
.arg(
Arg::with_name("program_location")
.index(1)
@@ -2189,9 +2190,8 @@ fn report_ephemeral_mnemonic(words: usize, mnemonic: bip39::Mnemonic) {
words
);
eprintln!("{}\n{}\n{}", divider, phrase, divider);
eprintln!("To resume a deploy, pass the recovered keypair as");
eprintln!("the [PROGRAM_ADDRESS_SIGNER] argument to `solana deploy` or");
eprintln!("as the [BUFFER_SIGNER] to `solana program deploy` or `solana write-buffer'.");
eprintln!("To resume a deploy, pass the recovered keypair as the");
eprintln!("[BUFFER_SIGNER] to `solana program deploy` or `solana write-buffer'.");
eprintln!("Or to recover the account's lamports, pass it as the");
eprintln!(
"[BUFFER_ACCOUNT_ADDRESS] argument to `solana program close`.\n{}",