Skip to content

Commit

Permalink
Merge branch 'query-proposal-votes' (#2611)
Browse files Browse the repository at this point in the history
* dsrvlabs/query-proposal-votes:
  add changelog
  show help for query-proposal-votes when no arg provided
  • Loading branch information
Gianmarco Fraccaroli committed Feb 19, 2024
2 parents 04d1952 + 58a67b0 commit 4052288
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Show help message for query-proposal subcommand instead of crashing when no
arg provided. ([\#2611](https://github.com/anoma/namada/pull/2611))
1 change: 1 addition & 0 deletions crates/apps/src/lib/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,7 @@ pub mod cmds {
fn def() -> App {
App::new(Self::CMD)
.about("Query votes for the proposal.")
.arg_required_else_help(true)

Check warning on line 1078 in crates/apps/src/lib/cli.rs

View check run for this annotation

Codecov / codecov/patch

crates/apps/src/lib/cli.rs#L1078

Added line #L1078 was not covered by tests
.add_args::<args::QueryProposalVotes<args::CliTypes>>()
}
}
Expand Down

0 comments on commit 4052288

Please sign in to comment.