stripe / stripe-cli

A command-line tool for Stripe
https://stripe.com/docs/stripe-cli
Apache License 2.0
1.57k stars 362 forks source link

project name should be quoted in not-logged-into-project error message #1061

Open gregsadetsky opened 1 year ago

gregsadetsky commented 1 year ago

Issue

I ran:

stripe listen --project-name "My Project Name" --forward-to localhost:3000/webhooks

and was presented with a valid error:

Please run `stripe login --project-name=My Project Name` to enable commands for this project.

it's a very small point, but the project name should have been quoted. Otherwise, the command cannot be run as is.

The line generating the error is here.

Expected Behavior

I would have expected the error message to be:

Please run `stripe login --project-name="My Project Name"` to enable commands for this project.

Environment

macOS