/// <summary> /// Entry point. /// </summary> /// <param name="args">The arguments.</param> static void Main(string[] args) { NCommands commands = new NCommands(); commands.Context.AutodetectCommandAssemblies(); // Loads all assemblies in bin folder and checks for CommandAttribute commands.Context.Configuration.DisplayExceptionDetails = false; // commands.Context.Configuration.Notation = ParserNotation.Unix; commands.RunConsole(args); }
static void Main(string[] args) { Logger.LoggerHandlerManager .AddHandler(new ConsoleLoggerHandler()) .AddHandler(new FileLoggerHandler()) .AddHandler(new DebugConsoleLoggerHandler()); NCommands commands = new NCommands(); commands.RunConsole(args); Console.Read(); }
private static void Main(string[] args) { var traceListener = new ConsoleTraceListener(); traceListener.TraceOutputOptions = TraceOptions.DateTime; Trace.Listeners.Add(traceListener); var commands = new NCommands(); commands.Context.Configuration.Notation = ParserNotation.Unix; while (true) { commands.RunConsole(args); StopTracing(); } }
/// <summary> /// Entry point. /// </summary> /// <param name="args">The arguments.</param> static void Main(string[] args) { NCommands commands = new NCommands(); commands.Context.AutodetectCommandAssemblies(); // Loads all assemblies in bin folder and checks for CommandAttribute commands.RunConsole(args); }