-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Inconsistent verb mood in command options and descriptions #36973
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
Comments
This link is not about command help, but about commit messages. And here, the main argument is consistency with git-generated messages, not personal preference. |
Fair enough, there's just not a lot of explicit guidance on this so you have a stretch a bit to find it 😄 Like I said, I don't really care as long as it's consistent and mindfully chosen. |
Hey, thanks for your report! |
Hello? This issue is about to be closed if nobody replies. |
I think this is still valid, but I don't know how to move it forward. I'm happy to provide a PR but a maintainer needs to choose the approach. |
I think using imperative everywhere is the way to go. Up for a PR? I would say on 4.4. |
Thanks, I agree! Here are the corresponding PRs: |
This PR was merged into the 4.4 branch. Discussion ---------- Fix #36973: Command description consistency | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #36973 | License | MIT | Doc PR | symfony/symfony-docs#15062 This rewords command descriptions and options to use consistent verb mood. Commits ------- 01e18b0 Fix #36973: Command description consistency
* 4.4: Fix #36973: Command description consistency Render email once
* 5.2: Fix #36973: Command description consistency Render email once
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- Command naming conventions This is a partial fix for symfony/symfony#36973, to be reviewed along with symfony/symfony#40387 Commits ------- 60f8569 Command naming conventions
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: dev-master
Description
Built-in Symfony options and commands, such as in the Console and Framework Bundle, use inconsistent mood in option and command descriptions.
How to reproduce
Look at the option and command descriptions in AssetsInstallCommand.php and HelpCommand.php, just for example.
Note that some verbs are in the indicative mood ("Symlinks") and some are imperative ("Display").
This is not only grammatically inconsistent, but the inconsistency makes it difficult for downstream projects to choose a consistent standard when implementing commands.
Possible Solution
Reword all command options and descriptions to use a consistent mood, ideally the imperative mood (no trailing "s") since that's more concise, matches the commands themselves, and is in line with what I tend to see for other more traditional frameworks and commands (such as Unix man pages), and random internet people seem to prefer it. But I don't really care as long as it's consistent.
Bonus points for declaring this along with rationale in a Symfony style guide or documentation.
The text was updated successfully, but these errors were encountered: