.help("environment variable naming the file that contains bcrypt-hashed password required for admin commands")
.help("environment variable naming the file that contains bcrypt-hashed password required for admin commands. If the value of this variable starts with @ it is the literal bcrypted password, after the @")
.default_value("BUBBLE_FR_PASS")
.takes_value(true))
.arg(Arg::with_name(ARG_PASSWORD_ENV_VAR)
@@ -107,7 +107,7 @@ async fn main() {
.short("t")
.long("token-file")
.value_name("ENV_VAR_NAME")
.help("environment variable naming the file that contains the bubble token")
.help("environment variable naming the file that contains the bubble token. If the value of this variable starts with @ it is the literal token, after the @")
.default_value("BUBBLE_FR_TOKEN")
.takes_value(true))
.arg(Arg::with_name(ARG_SSH_KEY_FILE)
@@ -160,8 +160,13 @@ async fn main() {
let password_file_env_var_opt = args.value_of(ARG_PASSWORD_FILE);
let password_file = read_required_env_var_argument("password-file", password_file_env_var_opt);
let password_opt = args.value_of(ARG_PASSWORD_ENV_VAR);
let password_hash = init_password(password_file.as_str(), password_opt);