Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

CommandLineUtils help is always listed as the second item #3343

Closed
dotnetshadow opened this issue Jan 29, 2016 · 1 comment
Closed

CommandLineUtils help is always listed as the second item #3343

dotnetshadow opened this issue Jan 29, 2016 · 1 comment

Comments

@dotnetshadow
Copy link

Hi I noticed that the help command appears second in the list of commands irrespective of the order of commands: This is as of version asp.net 5 rc1

   var app = new CommandLineApplication
            {
                Name = "dnx mytest",
                FullName = "MyTest Commands"
            };
            app.VersionOption("--version", PlatformServices.Default.Application.ApplicationVersion);
            app.HelpOption("-?|-h|--help");

            app.OnExecute(() =>
                {
                    //ShowLogo();
                    app.ShowHelp();

                    return 0;
                });

            app.Command(
               "command1",
               database =>
               {                   

               });

            app.Command(
              "command2",
              database =>
              {

              });
            return app.Execute(args);

image

@dotnetshadow dotnetshadow changed the title CommandLineUtils help is always listed as the second item CommandLineUtils help command appears as second item always Jan 29, 2016
@dotnetshadow dotnetshadow changed the title CommandLineUtils help command appears as second item always CommandLineUtils help is always listed as the second item Jan 29, 2016
@muratg
Copy link
Contributor

muratg commented Feb 1, 2016

This issue was moved to dotnet/extensions#89

@muratg muratg closed this as completed Feb 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants