Skip to content

Commit

Permalink
cmd/utils: add --nousb to the list of deprecated flags (#23388)
Browse files Browse the repository at this point in the history
Adds --nousb as a deprecated flag when someone runs the geth show-deprecated-flags command.
  • Loading branch information
Zachinquarantine committed Aug 17, 2021
1 parent 85b9bdd commit 16ecdd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/utils/flags.go
Expand Up @@ -125,10 +125,6 @@ var (
Name: "keystore",
Usage: "Directory for the keystore (default = inside the datadir)",
}
NoUSBFlag = cli.BoolFlag{
Name: "nousb",
Usage: "Disables monitoring for and managing USB hardware wallets (deprecated)",
}
USBFlag = cli.BoolFlag{
Name: "usb",
Usage: "Enable monitoring and management of USB hardware wallets",
Expand Down
5 changes: 5 additions & 0 deletions cmd/utils/flags_legacy.go
Expand Up @@ -36,10 +36,15 @@ var ShowDeprecated = cli.Command{

var DeprecatedFlags = []cli.Flag{
LegacyMinerGasTargetFlag,
NoUSBFlag,
}

var (
// (Deprecated May 2020, shown in aliased flags section)
NoUSBFlag = cli.BoolFlag{
Name: "nousb",
Usage: "Disables monitoring for and managing USB hardware wallets (deprecated)",
}
LegacyRPCEnabledFlag = cli.BoolFlag{
Name: "rpc",
Usage: "Enable the HTTP-RPC server (deprecated and will be removed June 2021, use --http)",
Expand Down

0 comments on commit 16ecdd5

Please sign in to comment.