neondatabase / neonctl

Neon CLI tool. The Neon CLI is a command-line interface that lets you manage Neon Serverless Postgres directly from the terminal.
https://neon.tech/docs/reference/neon-cli
Apache License 2.0
54 stars 11 forks source link

fix: handle immediate failure when `neonctl create-app` is given an i… #270

Closed abhishekmmgn closed 2 months ago

abhishekmmgn commented 2 months ago

This PR fixes issue #254 .

Before-

➜ : neonctl create-app name ERROR: Unknown command: name ➜ : What is your project named? › my-app%

After- ➜ : node dist create-app my-app
ERROR: Unknown command: my-app ➜ :

davidgomes commented 2 months ago

@abhishekmmgn I talked to @Shridhad and we think it'd be a good idea to try using Yarg's strict feature:

https://yargs.js.org/docs/#api-reference-strictenabledtrue

What do you think? Want to give that a spin and see how it works?