mirror of
https://github.com/jech/galene.git
synced 2024-11-14 04:35:57 +01:00
Rename -hash to -type.
This commit is contained in:
parent
31dc84d904
commit
37c81e2cd9
1 changed files with 4 additions and 4 deletions
|
@ -251,8 +251,8 @@ func hashPasswordCmd(cmdname string, args []string) {
|
||||||
"%v [option...] %v [option...] password...\n",
|
"%v [option...] %v [option...] password...\n",
|
||||||
os.Args[0], cmdname,
|
os.Args[0], cmdname,
|
||||||
)
|
)
|
||||||
cmd.StringVar(&algorithm, "hash", "pbkdf2",
|
cmd.StringVar(&algorithm, "type", "pbkdf2",
|
||||||
"hashing `algorithm`")
|
"password `type`")
|
||||||
cmd.IntVar(&iterations, "iterations", 4096,
|
cmd.IntVar(&iterations, "iterations", 4096,
|
||||||
"`number` of iterations (pbkdf2)")
|
"`number` of iterations (pbkdf2)")
|
||||||
cmd.IntVar(&cost, "cost", bcrypt.DefaultCost,
|
cmd.IntVar(&cost, "cost", bcrypt.DefaultCost,
|
||||||
|
@ -396,8 +396,8 @@ func setPasswordCmd(cmdname string, args []string) {
|
||||||
os.Args[0], cmdname,
|
os.Args[0], cmdname,
|
||||||
)
|
)
|
||||||
cmd.StringVar(&groupname, "group", "", "group `name`")
|
cmd.StringVar(&groupname, "group", "", "group `name`")
|
||||||
cmd.StringVar(&algorithm, "hash", "pbkdf2",
|
cmd.StringVar(&algorithm, "type", "pbkdf2",
|
||||||
"hashing `algorithm`")
|
"password `type`")
|
||||||
cmd.IntVar(&iterations, "iterations", 4096,
|
cmd.IntVar(&iterations, "iterations", 4096,
|
||||||
"`number` of iterations (pbkdf2)")
|
"`number` of iterations (pbkdf2)")
|
||||||
cmd.IntVar(&cost, "cost", bcrypt.DefaultCost,
|
cmd.IntVar(&cost, "cost", bcrypt.DefaultCost,
|
||||||
|
|
Loading…
Reference in a new issue