diff --git a/src/client/sparkcmd/Cmd/ConfigCheckCommand.cs b/src/client/sparkcmd/Cmd/ConfigCheckCommand.cs index 7284e48db..b577b4e15 100644 --- a/src/client/sparkcmd/Cmd/ConfigCheckCommand.cs +++ b/src/client/sparkcmd/Cmd/ConfigCheckCommand.cs @@ -9,12 +9,20 @@ namespace bts { public class ConfigcheckOptions { [Value(0, MetaName="keys", HelpText="Keys to print")] public IEnumerable keys { get; set; } + + [Option("sparkd", MetaValue = "URL", HelpText = "The sparkd server")] + public string sparkd { get; set; } } + public class Configcheck { public static int Run(ConfigcheckOptions options) { var keys = options.keys.ToArray(); + if (options.sparkd is not null) { + var args = Environment.GetCommandLineArgs(); + BTS.set_config_arg(args, options.sparkd); + } mbts.config.Configuration.configcheck(keys.Length, keys); return 0; } } -} \ No newline at end of file +}