Skip to content

Commit

Permalink
remove unused current dir arg and add cargo args parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ngundotra committed Dec 20, 2024
1 parent 7d60bdf commit e99a3f8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit e99a3f8

Please sign in to comment.