From e99a3f8900ef1be38adac50fa891217a2ce59977 Mon Sep 17 00:00:00 2001 From: Noah Gundotra Date: Fri, 20 Dec 2024 08:52:55 -0500 Subject: [PATCH] remove unused current dir arg and add cargo args parsing --- src/main.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4f2dea7..8516800 100644 --- a/src/main.rs +++ b/src/main.rs @@ -144,7 +144,7 @@ async fn main() -> anyhow::Result<()> { .arg(Arg::with_name("cargo-args") .multiple(true) .last(true) - .help("Arguments to pass to the underlying `cargo build-bpf` command"))) + .help("Arguments to pass to the underlying `cargo build-sbf` command"))) .subcommand(SubCommand::with_name("verify-from-image") .about("Verifies a cached build from a docker image") .arg(Arg::with_name("executable-path-in-image") @@ -234,7 +234,7 @@ async fn main() -> anyhow::Result<()> { .arg(Arg::with_name("cargo-args") .multiple(true) .last(true) - .help("Arguments to pass to the underlying `cargo build-bpf` command")) + .help("Arguments to pass to the underlying `cargo build-sbf` command")) .arg(Arg::with_name("skip-build") .long("skip-build") .help("Skip building and verification, only upload the PDA") @@ -281,9 +281,10 @@ async fn main() -> anyhow::Result<()> { .arg(Arg::with_name("bpf") .long("bpf") .help("If the program requires cargo build-bpf (instead of cargo build-sbf), set this flag")) - .arg(Arg::with_name("current-dir") - .long("current-dir") - .help("Verify in current directory"))) + .arg(Arg::with_name("cargo-args") + .multiple(true) + .last(true) + .help("Arguments to pass to the underlying `cargo build-sbf` command"))) .subcommand(SubCommand::with_name("close") .about("Close the otter-verify PDA account associated with the given program ID") .arg(Arg::with_name("program-id")