Esempio n. 1
0
        public static int Compact(List <string> args, Dictionary <string, string> options, Library.Utility.IFilter filter)
        {
            if (args.Count != 1)
            {
                return(PrintWrongNumberOfArguments(args, 1));
            }

            using (var i = new Library.Main.Controller(args[0], options, new ConsoleOutput(options)))
                i.Compact();

            return(0);
        }
Esempio n. 2
0
        public static int Compact(List<string> args, Dictionary<string, string> options, Library.Utility.IFilter filter)
        {
            if (args.Count != 1)
                return PrintWrongNumberOfArguments(args, 1);
                
            using(var i = new Library.Main.Controller(args[0], options, new ConsoleOutput(options)))
                i.Compact();

            return 0;
        }