Skip to content

Commit

Permalink
fix(cli): --help subcommands display order (foundry-rs#3459)
Browse files Browse the repository at this point in the history
* fix(cli): --help subcommands display order

* fix anvil
  • Loading branch information
shekhirin authored and iFrostizz committed Nov 9, 2022
1 parent 1951763 commit d4f383f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion anvil/src/anvil.rs
Expand Up @@ -4,7 +4,7 @@ use clap::{CommandFactory, Parser, Subcommand};

/// A fast local Ethereum development node.
#[derive(Debug, Parser)]
#[clap(name = "anvil", version = anvil::VERSION_MESSAGE)]
#[clap(name = "anvil", version = anvil::VERSION_MESSAGE, next_display_order = None)]
pub struct App {
#[clap(flatten)]
pub node: NodeArgs,
Expand Down
4 changes: 2 additions & 2 deletions cli/src/opts/cast.rs
Expand Up @@ -21,9 +21,9 @@ pub struct Opts {
#[derive(Debug, Subcommand)]
#[clap(
about = "Perform Ethereum RPC calls from the comfort of your command line.",
after_help = "Find more information in the book: http://book.getfoundry.sh/reference/cast/cast.html"
after_help = "Find more information in the book: http://book.getfoundry.sh/reference/cast/cast.html",
next_display_order = None
)]

pub enum Subcommands {
#[clap(name = "--max-int")]
#[clap(visible_aliases = &["max-int", "maxi"])]
Expand Down
3 changes: 2 additions & 1 deletion cli/src/opts/forge.rs
Expand Up @@ -34,7 +34,8 @@ pub struct Opts {
#[derive(Debug, Subcommand)]
#[clap(
about = "Build, test, fuzz, debug and deploy Solidity contracts.",
after_help = "Find more information in the book: http://book.getfoundry.sh/reference/forge/forge.html"
after_help = "Find more information in the book: http://book.getfoundry.sh/reference/forge/forge.html",
next_display_order = None
)]
#[allow(clippy::large_enum_variant)]
pub enum Subcommands {
Expand Down

0 comments on commit d4f383f

Please sign in to comment.