create-playwright
create-playwright copied to clipboard
fix: exit with return code 0, exit early with --help
Hi there, I was reading the code for the --help flag and I realized that create-playwright is:
- Exiting with a non-zero exit code
- Doing some work to find the root directory and then throwing that away
Both of these seem like unusual patterns.
Some basis for the return code 0 change here:
- https://stackoverflow.com/questions/50565408/should-bash-scripts-called-with-help-argument-return-0-or-not-zero-exit-code