public async Task <bool> Execute(string[] args)
        {
            this.logger.SuspendOutput();
            var processedArgs = ArgumentProcessor.TryProcessArgs(args, this.logger);

            if (processedArgs == null)
            {
                this.logger.ResumeOutput();
                this.logger.LogError(Resources.ERROR_InvalidCommandLineArgs);
                return(false);
            }
            else
            {
                return(await DoExecute(processedArgs));
            }
        }
Ejemplo n.º 2
0
        public bool Execute(string[] args)
        {
            logger.SuspendOutput();
            var processedArgs = ArgumentProcessor.TryProcessArgs(args, logger);

            if (processedArgs == null)
            {
                logger.ResumeOutput();
                logger.LogError(Resources.ERROR_InvalidCommandLineArgs);
                return(false);
            }
            else
            {
                return(DoExecute(processedArgs));
            }
        }