Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

It's possible to pass -h as a folder name #827

@diegonvs

Description

@diegonvs

Description

There isn't a -h flag or a piece of code that detects if the user tried to pass a flag instead of a folder name causing a non expected folder creation.

Steps to Reproduce:

  1. Install the latest CLI([email protected])
  2. Try running react-360 init -h

Instead of returning help information for users about init script, it just creates a folder called -h and it's impossible(at least for beginners) to erase it because when running rm -h, rm -rf -h, rm -rf '\-h' it doesn't removes the folder

Expected behaviour

Prevent the user in creating tricky folders with flag names like create-react-app does.

Solution

Not yet

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