Skip to content

Show warnings for invalid tokens in synopsis - #636

Merged
scribu merged 2 commits into
masterfrom
synopsis-warnings
Aug 8, 2013
Merged

scribu merged 2 commits into
masterfrom
synopsis-warnings

Conversation

@scribu

@scribu scribu commented Aug 5, 2013

Copy link
Copy Markdown
Member

If you add a @synopsis tag to your command, you would expect it to complain if you got the syntax wrong, since it affects the command's behavior.

The synopsis stopped being just a documentation aid ever since we started doing argument validation based on it.

[Later edit: Actually, the @synopsis annotation was used for doing arg validation right from the start: #178]

Brought up by #633.

scribu pushed a commit that referenced this pull request Aug 8, 2013
Show warnings for invalid tokens in synopsis
@scribu
scribu merged commit d3db102 into master Aug 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants