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:
- Install the latest CLI(react-360-cli@1.1.0)
- 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
Description
There isn't a
-hflag 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:
react-360 init -hInstead of returning help information for users about
initscript, it just creates a folder called-hand it's impossible(at least for beginners) to erase it because when runningrm -h,rm -rf -h,rm -rf '\-h'it doesn't removes the folderExpected behaviour
Prevent the user in creating tricky folders with flag names like
create-react-appdoes.Solution
Not yet