From 4d43291343cac30377fd8cdba13c60425ec94977 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Wed, 5 Oct 2022 17:53:16 +0100 Subject: [PATCH 1/2] fix(cli): --help subcommands display order --- cli/src/opts/cast.rs | 4 ++-- cli/src/opts/forge.rs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/src/opts/cast.rs b/cli/src/opts/cast.rs index a33c697af0cf..ce33d1a15c25 100644 --- a/cli/src/opts/cast.rs +++ b/cli/src/opts/cast.rs @@ -24,9 +24,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"])] diff --git a/cli/src/opts/forge.rs b/cli/src/opts/forge.rs index 00168091bbba..8a8983ea0497 100644 --- a/cli/src/opts/forge.rs +++ b/cli/src/opts/forge.rs @@ -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 { From 5acf3662712cc6d0d356ea1445f5bb57ab5562eb Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Thu, 6 Oct 2022 11:16:35 +0100 Subject: [PATCH 2/2] fix anvil --- anvil/src/anvil.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anvil/src/anvil.rs b/anvil/src/anvil.rs index af3c457440fb..fb4c8549e594 100644 --- a/anvil/src/anvil.rs +++ b/anvil/src/anvil.rs @@ -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,