Skip to content

Commit 8156464

Browse files
Make sure 'declare user' also supports --hashing-algorithm
1 parent 987fc42 commit 8156464

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/cli.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,16 @@ fn declare_subcommands(pre_flight_settings: PreFlightSettings) -> [Command; 12]
696696
.required(false)
697697
.default_value(""),
698698
)
699+
.arg(
700+
Arg::new("hashing_algorithm")
701+
.long("hashing-algorithm")
702+
.required(false)
703+
.conflicts_with("password_hash")
704+
.requires("password")
705+
.value_parser(value_parser!(HashingAlgorithm))
706+
.default_value("SHA256")
707+
.help("The hashing algorithm to use: SHA256 or SHA512"),
708+
)
699709
.arg(
700710
Arg::new("tags")
701711
.long("tags")

0 commit comments

Comments
 (0)