Skip to content
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

fix(docs): clarify in the CLI help that argument values must be specified with = #1052

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

timrogers
Copy link
Contributor

@timrogers timrogers commented Aug 23, 2024

Details

Unlike many CLIs, the plasmo CLI requires argument values to be provided with = notation (e.g. --target=chrome-mv3).

This requirement comes from the getFlag method in the @plasmo/utils package.

https://github.com/PlasmoHQ/plasmo-utils/blob/2838ca6214117bfd93b566b4b75586f6a9bd89f7/flags.ts#L8-L16

This expectation isn't clear in the documentation in the CLI, which is quite misleading. This fixes that, updating all of the examples to clearly show setting a value with =.

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I agree to license this contribution under the MIT LICENSE
  • I checked the current PR for duplication.

Contacts

  • (OPTIONAL) Discord ID:

If your PR is accepted, we will award you with the Contributor role on Discord server.

To join the server, visit: https://www.plasmo.com/s/d

timrogers and others added 2 commits August 23, 2024 19:15
…fied with `=`

Unlike many CLIs, the `plasmo` CLI requires argument values to be
provided with `=` notation (e.g. `--target=chrome-mv3`).

This requirement comes from the `getFlag` method in the
`@plasmo/utils` package.

https://github.com/PlasmoHQ/plasmo-utils/blob/2838ca6214117bfd93b566b4b75586f6a9bd89f7/flags.ts#L8-L16

This expectation isn't clear in the documentation in the CLI, which
is quite misleading. This fixes that, updating all of the examples
to clearly show setting a value with `=`.
Copy link
Contributor

@louisgv louisgv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@louisgv louisgv added this pull request to the merge queue Aug 30, 2024
Merged via the queue into PlasmoHQ:main with commit e07d5e1 Aug 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants