Skip to content

Commit

Permalink
cmd/geth: reintroduce wallet import subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-vk committed May 23, 2017
1 parent 3556962 commit 437ceaa
Showing 1 changed file with 30 additions and 15 deletions.
45 changes: 30 additions & 15 deletions cmd/geth/accountcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,40 @@ import (

var (
walletCommand = cli.Command{
Name: "wallet",
Usage: "Import Ethereum presale wallets",
Action: utils.MigrateFlags(importWallet),
Category: "ACCOUNT COMMANDS",
Flags: []cli.Flag{
utils.DataDirFlag,
utils.KeyStoreDirFlag,
utils.PasswordFileFlag,
utils.LightKDFFlag,
},
Name: "wallet",
Usage: "Manage Ethereum presale wallets",
ArgsUsage: "",
Category: "ACCOUNT COMMANDS",
Description: `
geth wallet [options] /path/to/my/presale.wallet
geth wallet import /path/to/my/presale.wallet
will prompt for your password and imports your ether presale account.
It can be used non-interactively with the --password option taking a
passwordfile as argument containing the wallet password in plaintext.`,
Subcommands: []cli.Command{
{

will prompt for your password and imports your ether presale account.
It can be used non-interactively with the --password option taking a
passwordfile as argument containing the wallet password in plaintext.
Name: "import",
Usage: "Import Ethereum presale wallet",
ArgsUsage: "<keyFile>",
Action: utils.MigrateFlags(importWallet),
Category: "ACCOUNT COMMANDS",
Flags: []cli.Flag{
utils.DataDirFlag,
utils.KeyStoreDirFlag,
utils.PasswordFileFlag,
utils.LightKDFFlag,
},
Description: `
geth wallet [options] /path/to/my/presale.wallet
`,
will prompt for your password and imports your ether presale account.
It can be used non-interactively with the --password option taking a
passwordfile as argument containing the wallet password in plaintext.`,
},
},
}

accountCommand = cli.Command{
Name: "account",
Usage: "Manage accounts",
Expand Down

0 comments on commit 437ceaa

Please sign in to comment.