Skip to content

Conversation

@lvermeulen
Copy link
Contributor

Fixes #147

@natemcmaster
Copy link
Owner

Hey @lvermeulen wanted to let you know I saw your PR. I'm should be able to review this closer in late September after I return from vacation.

Thanks,
-Nate

Copy link
Owner

@natemcmaster natemcmaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing tests! Not everyone does that and it really helps that you did. I have no problem adding API. My feedback is mostly about where we put this new API.

/// <summary>
/// Determines if commands are ordered by name in generated help text
/// </summary>
public bool OrderCommandsByNameInHelpText { get; set; } = true;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this property should be on DefaultHelpTextGenerator, not CommandLineApplication. Other Implementations of IHelptTextGenerator are not required to honor this, so I don’t think it belongs here. Plus, I’m trying to avoid making CommandLineApplication a “god class”.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hear you! Let me make those changes.

/// <summary>
/// Determines if commands are ordered by name in generated help text
/// </summary>
public bool OrderCommandsByNameInHelpText { get; set; } = true;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last request: can we name this SortCommandsByName? Once that's in, I'll be happy to merge this PR.

Copy link
Contributor Author

@lvermeulen lvermeulen Oct 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, I added a commit.

@natemcmaster natemcmaster merged commit 8367e32 into natemcmaster:master Oct 2, 2018
@natemcmaster
Copy link
Owner

Thanks @lvermeulen!

@natemcmaster natemcmaster added this to the 2.3.0 milestone Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants