Skip to content
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

Open
diegonvs opened this issue Aug 16, 2020 · 0 comments
Open

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

diegonvs opened this issue Aug 16, 2020 · 0 comments

Comments

@diegonvs
Copy link

diegonvs commented Aug 16, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant