示例#1
0
        static void Main(string[] args)
        {
            var options = new Options();

            ICommandLineParser parser = new CommandLineParser(new CommandLineParserSettings(Console.Error));
            if (!parser.ParseArguments(args, options)
                || !Invoke(options.Name,
                            new QCat(options),
                            new QueueTools(),
                            new ConsoleOutput(),
                            new ConsoleInput()))
            {
                Environment.Exit(1);
            }
        }
示例#2
0
文件: QCat.cs 项目: SmartFire/qtools
 public QCat(Options opts)
 {
     _opts = opts;
 }