Files
ScadaBridge/src/ZB.MOM.WW.ScadaBridge.CLI/Program.cs
T
2026-09-10 00:51:45 -04:00

14 lines
545 B
C#

using System.CommandLine.Parsing;
using ZB.MOM.WW.ScadaBridge.CLI;
using ZB.MOM.WW.ScadaBridge.CLI.Commands;
var rootCommand = CliApplication.BuildRoot();
// Deprecation notice for the earlier `audit-log` command name. The command itself
// still works (it is an alias of `audit-config`), but using the old name emits a
// warning to stderr so scripts can be migrated.
AuditLogCommands.WriteDeprecationWarningIfNeeded(args, Console.Error);
var parseResult = CommandLineParser.Parse(rootCommand, args);
return await parseResult.InvokeAsync();