Skip to content

Commit 437ceaa

Browse files
committed
cmd/geth: reintroduce wallet import subcommand
1 parent 3556962 commit 437ceaa

File tree

1 file changed

+30
-15
lines changed

1 file changed

+30
-15
lines changed

cmd/geth/accountcmd.go

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,40 @@ import (
3131

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

47-
will prompt for your password and imports your ether presale account.
48-
It can be used non-interactively with the --password option taking a
49-
passwordfile as argument containing the wallet password in plaintext.
47+
Name: "import",
48+
Usage: "Import Ethereum presale wallet",
49+
ArgsUsage: "<keyFile>",
50+
Action: utils.MigrateFlags(importWallet),
51+
Category: "ACCOUNT COMMANDS",
52+
Flags: []cli.Flag{
53+
utils.DataDirFlag,
54+
utils.KeyStoreDirFlag,
55+
utils.PasswordFileFlag,
56+
utils.LightKDFFlag,
57+
},
58+
Description: `
59+
geth wallet [options] /path/to/my/presale.wallet
5060
51-
`,
61+
will prompt for your password and imports your ether presale account.
62+
It can be used non-interactively with the --password option taking a
63+
passwordfile as argument containing the wallet password in plaintext.`,
64+
},
65+
},
5266
}
67+
5368
accountCommand = cli.Command{
5469
Name: "account",
5570
Usage: "Manage accounts",

0 commit comments

Comments
 (0)