-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exit if wrong args/flags are passed. #85
Comments
After reviewing this issue, am suggesting adding the Therefore in other to determine if an arguments passed is valid or not, we can call the In conclusion, the argument passed check would be checked in the
I stand to be corrected where ever necessary and anticipating suggestion as well. @garg3133 could you please help review this comment. |
Hi @olawoyinsamson, thanks for investigating this but this issue is for the This can be reproduced easily by running |
@garg3133 thank you for your review and help, i will revert to the |
@garg3133 please I have only found the following flags when install
Please do we have any other flags apart from the ones above. I will implement the issue resolution with checking I stand to be corrected. |
Hi @garg3133 i wanted to mention that i now have a resolution for issue #85 via repo [email protected]:olawoyinsamson/create-nightwatch.git , please help review and send feedback. Thank you. |
Currently,
create-nightwatch
passes through and starts the setup process even if some wrong arguments or flags are passed. Instead, we should error out on wrong args/flags and possibly give suggestions on the correct flags.We currently have our own implementation for giving suggestions on the correct flag if a wrong flag is passed, but if the flag passed is just something random, instead of erroring out, it lets the process pass through. So, maybe we can try using the
didyoumean
package as used in Nightwatch.The text was updated successfully, but these errors were encountered: