예제 #1
0
        private async Task <int> OnExecuteAsync(CommandLineApplication app)
        {
            MainEntry.BeforeExecute(this, app);

            MainEntry.PrintUsage("A command must be provided, here are some suggestions:", MainEntry.Usages.All);
            return(ExceptionLookup.ActionRequired);
        }
        /// <summary>
        /// This method is called when we run the command.
        /// This method is automatically invoked by CommandLineUtils through reflection.
        /// </summary>
        public Task <int> OnExecuteAsync(CommandLineApplication app)
        {
            MainEntry.BeforeExecute(this.Parent, app);

            return(this.Execute(app));
        }