Example #1
0
        static void Main(string[] args)
        {
            var options = new Options();
            if(string.IsNullOrEmpty(options.Machine))
            {
                options.Machine = ".";
            }

            ICommandLineParser parser = new CommandLineParser(new CommandLineParserSettings(Console.Error));
            if (!parser.ParseArguments(args, options))
                Environment.Exit(1);

            if (!Invoke("ls", new QLs(options), new QueueTools(), new ConsoleOutput(), new ConsoleInput()))
                Environment.Exit(1);
        }
Example #2
0
 public QLs(Options options)
 {
     _options = options;
 }