Skip to content

Add configuration options to addCommand#1232

Merged
shadowspawn merged 2 commits intotj:developfrom
shadowspawn:feature/addCommand-opts
Mar 30, 2020
Merged

Add configuration options to addCommand#1232
shadowspawn merged 2 commits intotj:developfrom
shadowspawn:feature/addCommand-opts

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.

2 participants