v0.20.1
-
Fix
yarn version
which yields same output asyarn --version
(#2491) (#2510)Constantine Antonakos - Wed, 1 Feb 2017 15:15:37 +0000
- Fix
yarn version
which yields same output asyarn --version
(#2491)
There was a conflict when commander attempts to parse the incoming args between
the command executed and the options since the nameversion
was shared. In
other words, executing the commandyarn version
would yield the same output
asyarn --version
. This relates to PR #2268.- Shift first arg that shares name with an option to circumvent conflicting
name bug
Relating to tj/commander.js#346, when an arg shares the same name as an option,
it wrongly ignores the arg command and executes the option instead. Therefore,
executing 'yarn version' would instead translate to 'yarn --version'. This
logic can subsequently be removed once this issue is resolved. - Fix