Skip to content

v0.20.1

Compare
Choose a tag to compare
@bestander bestander released this 14 Feb 20:06
· 1113 commits to master since this release
  • Fix yarn version which yields same output as yarn --version (#2491) (#2510)

    Constantine Antonakos - Wed, 1 Feb 2017 15:15:37 +0000

    • Fix yarn version which yields same output as yarn --version (#2491)

    There was a conflict when commander attempts to parse the incoming args between
    the command executed and the options since the name version was shared. In
    other words, executing the command yarn version would yield the same output
    as yarn --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.