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

change default name of options to kebab-case #41

Closed
Tracked by #62
tacman opened this issue Oct 4, 2022 · 2 comments
Closed
Tracked by #62

change default name of options to kebab-case #41

tacman opened this issue Oct 4, 2022 · 2 comments

Comments

@tacman
Copy link
Contributor

tacman commented Oct 4, 2022

        #[Option(description: 'do not actually update')] // default name: 'dry-run' ? 
        bool    $dryRun,

It seems to me that the default name should be 'dry-run', since I don't think camelCase is used as frequently.

https://commons.apache.org/proper/commons-cli/

bin/console do:something --dryRun
bin/console do:something --dry-run

All Symfony commands:

  -n, --no-interaction  Do not ask any interactive question
  -e, --env=ENV         The Environment name. [default: "dev"]
      --no-debug        Switch off debug mode.

Of course, that's a BC change.

@tacman tacman changed the title change default name of options to sausage-case change default name of options to kebab-case Oct 4, 2022
@kbond
Copy link
Member

kbond commented Oct 4, 2022

Good idea, I'll add to my 2.0 checklist

@kbond kbond mentioned this issue Oct 4, 2022
@kbond kbond mentioned this issue Feb 15, 2024
10 tasks
@tacman
Copy link
Contributor Author

tacman commented Apr 1, 2024

I see that this is coming, indeed I submitted a request for a more detailed deprecation warning #67

@tacman tacman closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants