1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 02:05:59 +01:00

Rename -hash to -type.

This commit is contained in:
Juliusz Chroboczek 2024-10-25 13:39:19 +02:00
parent 31dc84d904
commit 37c81e2cd9

View file

@ -251,8 +251,8 @@ func hashPasswordCmd(cmdname string, args []string) {
"%v [option...] %v [option...] password...\n",
os.Args[0], cmdname,
)
cmd.StringVar(&algorithm, "hash", "pbkdf2",
"hashing `algorithm`")
cmd.StringVar(&algorithm, "type", "pbkdf2",
"password `type`")
cmd.IntVar(&iterations, "iterations", 4096,
"`number` of iterations (pbkdf2)")
cmd.IntVar(&cost, "cost", bcrypt.DefaultCost,
@ -396,8 +396,8 @@ func setPasswordCmd(cmdname string, args []string) {
os.Args[0], cmdname,
)
cmd.StringVar(&groupname, "group", "", "group `name`")
cmd.StringVar(&algorithm, "hash", "pbkdf2",
"hashing `algorithm`")
cmd.StringVar(&algorithm, "type", "pbkdf2",
"password `type`")
cmd.IntVar(&iterations, "iterations", 4096,
"`number` of iterations (pbkdf2)")
cmd.IntVar(&cost, "cost", bcrypt.DefaultCost,