Skip to content

Implement yarn --version and/or yarn --help #208

@aduh95

Description

@aduh95

I was trying to build Yarn Switch in a sandboxed environment (Nix in case that matters), and it fails the version check:

$ yarn --version
Error: Missing home folder

› yarn […ARGSN]
$ yarn --help
Error: Missing home folder

› yarn […ARGSN]

IMO it would make sense for yarn --version to give version numbers for both Yarn Switch, and if available the local yarn. Alternatively, there could be some env variable to let the user chose if it wants the Yarn Switch version rather than the Yarn one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions