Move [env: ...] label after flag description in --help#7991
Open
isaacroldan wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
/snapit |
Contributor
|
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20260703111232Caution After installing, validate the version by running |
Since oclif 4.8, flag help renders the backing SHOPIFY_FLAG_* environment variable before the description, which pushes the description far to the right and hurts readability. Add a custom oclif help class that relocates the env label to the end of each flag's description, reusing oclif's own formatting for everything else. Wired via oclif.helpClass in package.json and emitted as a bundle entry point for the published CLI. Co-authored-by: Isaac Roldan <isaac.roldan@shopify.com> Assisted-By: devx/70100ba5-800c-4ca4-82a2-a4cc73e13e03
c402362 to
0c4fa78
Compare
gonzaloriestra
approved these changes
Jul 3, 2026
gonzaloriestra
left a comment
Contributor
There was a problem hiding this comment.
Working as expected 👌
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since oclif 4.8, flag help renders the backing SHOPIFY_FLAG_* environment variable before the description, which pushes the description far to the right and hurts readability. Add a custom oclif help class that relocates the env label to the end of each flag's description, reusing oclif's own formatting for everything else. Wired via oclif.helpClass in package.json and emitted as a bundle entry point for the published CLI.
WHY are these changes introduced?
Fixes #0000
WHAT is this pull request doing?
How to test your changes?
Post-release steps
Checklist
patchfor bug fixes ·minorfor new features ·majorfor breaking changes) and added a changeset withpnpm changeset add