Skip to content

Version command only works with directory #151

Closed
@mxstbr

Description

@mxstbr

I tried to get the version of create-react-app I had installed globally and thus ran

$ create-react-app --version

Which gave me this output:

Usage: create-react-app <project-directory> [--verbose]

By specifying a directory the version output works perfectly fine, but doesn't actually create a directory:

$ create-react-app test --version
create-react-app version: 0.1.0

screen shot 2016-07-24 at 09 15 17


I realize that this would be a change in the global CLI, but I think the new behaviour is much nicer and less confusing, and people who don't have the newer version installed won't have any problems either.

PR for this: #152

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions