Skip to content

Friendlier warnings about obsolete syntax - #2610

Merged
forki merged 1 commit into
fsprojects:masterfrom
TeaDrivenDev:nicersyntaxwarnings
Aug 15, 2017
Merged

forki merged 1 commit into
fsprojects:masterfrom
TeaDrivenDev:nicersyntaxwarnings

Conversation

@TeaDrivenDev

@TeaDrivenDev TeaDrivenDev commented Aug 13, 2017 •

Copy link
Copy Markdown
Contributor

When using the "old" syntax for Paket commands, such as paket add nuget <package>, Paket shows a warning saying

Please use the new syntax: nuget -> (omit, option is the new default argument)

or

Please use the new syntax: project -> --project

These are concise but not very friendly, and the first one requires some interpretation to make sense of.

This PR makes these messages more human-readable:

Please use the new syntax: 'nuget' is the default argument and should be omitted.

and

Please use the new syntax: 'project' has been replaced by '--project'.

Also, the error message when using old and new syntax together has been changed from

You cannot use the old and new syntax at the same time: project <-> --project

to

You cannot use the old and new syntax at the same time: 'project' has been replaced by '--project'. You cannot mix the two.

@forki
forki requested a review from agross August 15, 2017 10:37

@agross agross left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@forki

forki commented Aug 15, 2017

Copy link
Copy Markdown
Member

thx!

@forki
forki merged commit 31e074c into fsprojects:master Aug 15, 2017
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.

3 participants