14 lines
545 B
C#
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();
|