Skip to content

Add tips about showing help instead of just missing arguments error#1547

Merged
shadowspawn merged 2 commits intotj:release/8.xfrom
shadowspawn:feature/migrations-tips-8
Jun 13, 2021
Merged

Add tips about showing help instead of just missing arguments error#1547
shadowspawn merged 2 commits intotj:release/8.xfrom
shadowspawn:feature/migrations-tips-8

Conversation

@shadowspawn
Copy link
Copy Markdown
Collaborator

Pull Request

Problem

The behaviour is changing in Commander 8 for very simple programs which previously could decide after parsing what to do (if anything) about missing command-arguments.

Solution

Add a couple of simple approaches to Migration Tips in CHANGELOG.

I am not sure whether this come up much, but I'm thinking of the fairly casual users of Commander.

Comment thread CHANGELOG.md Outdated
If you have a simple program without an action handler, you will now get an error if
there are missing command-arguments.

```
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think an indent width of 2 is better.
Because other code examples are 2.

It would be nice to have a highlight setting as well. ```js

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
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 cf58455 into tj:release/8.x Jun 13, 2021
@shadowspawn shadowspawn deleted the feature/migrations-tips-8 branch June 13, 2021 20:38
@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Jun 13, 2021
@shadowspawn shadowspawn added this to the v8.0.0 milestone Jun 13, 2021
@shadowspawn shadowspawn removed the pending release Merged into a branch for a future release, but not released yet label Jun 25, 2021
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