Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration options to addCommand #1232

Merged
merged 2 commits into from Mar 30, 2020

Conversation

shadowspawn
Copy link
Collaborator

Pull Request

Problem

.addCommand() is missing the configuration options to offer the same control as for commands implemented using action handlers and executables.

I dislike variables starting with "no" or "not" as it requires extra thought to process what it means when set to a value especially with double negatives, like noHelp:false.

Solution

  • add configuration options to .addComand()
  • add hidden as new preferred name for noHelp
  • make executableFile valid only for executable configuration options in TypeScript

ChangeLog

  • add configuration options to .addCommand()
  • rename noHelp to hidden (but not remove old support)

Copy link
Collaborator

@abetomo abetomo left a comment

Choose a reason for hiding this comment

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

👍

@shadowspawn shadowspawn merged commit b5d95ee into tj:develop Mar 30, 2020
@shadowspawn shadowspawn deleted the feature/addCommand-opts branch March 30, 2020 06:56
@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Apr 2, 2020
@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Apr 25, 2020
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.

None yet

2 participants