diff --git a/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs b/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs
index 9429ef9..a345908 100644
--- a/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs
+++ b/clients/dotnet/ZB.MOM.WW.MxGateway.Client.Cli/MxGatewayClientCli.cs
@@ -353,11 +353,16 @@ public static class MxGatewayClientCli
///
private const string DefaultVerifyPasswordEnvironmentName = "MXGATEWAY_VERIFY_PASSWORD";
+ ///
+ /// Default environment variable holding the operator password for
+ /// acknowledge-alarm when --operator-password-env is not given.
+ ///
+ private const string OperatorPasswordEnvironmentName = "MXGATEWAY_OPERATOR_PASSWORD";
+
///
/// Legacy environment variable, still honoured as a deprecated fallback
/// for one release so existing scripts keep working.
///
- private const string OperatorPasswordEnvironmentName = "MXGATEWAY_OPERATOR_PASSWORD";
private const string LegacyVerifyPasswordEnvironmentName = "MXGATEWAY_VERIFY_USER_PASSWORD";
///
@@ -381,14 +386,10 @@ public static class MxGatewayClientCli
}
///
- /// Resolves the effective MXAccess verify-user credential in this
- /// order: --password, the deprecated --verify-user-password
- /// alias, the environment variable named by --password-env (default
- /// MXGATEWAY_VERIFY_PASSWORD), then the deprecated
- /// MXGATEWAY_VERIFY_USER_PASSWORD. An empty value from any source is
- /// treated as absent. The credential is never echoed; this resolver exists so
- /// the error-redaction catch block can strip it from any surfaced error,
- /// mirroring .
+ /// Resolves the acknowledge-alarm operator password: --operator-password,
+ /// then the environment variable named by --operator-password-env
+ /// (default MXGATEWAY_OPERATOR_PASSWORD). An empty value is treated as
+ /// absent. The value is never echoed; it is also fed to the error redactor.
///
private static string? ResolveOperatorPassword(CliArguments arguments)
{
@@ -408,6 +409,16 @@ public static class MxGatewayClientCli
return string.IsNullOrEmpty(password) ? null : password;
}
+ ///
+ /// Resolves the effective MXAccess verify-user credential in this
+ /// order: --password, the deprecated --verify-user-password
+ /// alias, the environment variable named by --password-env (default
+ /// MXGATEWAY_VERIFY_PASSWORD), then the deprecated
+ /// MXGATEWAY_VERIFY_USER_PASSWORD. An empty value from any source is
+ /// treated as absent. The credential is never echoed; this resolver exists so
+ /// the error-redaction catch block can strip it from any surfaced error,
+ /// mirroring .
+ ///
private static string? TryResolveVerifyUserPassword(CliArguments arguments)
{
string? password = arguments.GetOptional("password");