Skip to content

phpcbf --help missing config related CLI options #1080

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

Open
4 tasks done
rodrigoprimo opened this issue May 6, 2025 · 0 comments
Open
4 tasks done

phpcbf --help missing config related CLI options #1080

rodrigoprimo opened this issue May 6, 2025 · 0 comments

Comments

@rodrigoprimo
Copy link
Contributor

Describe the bug

While reviewing #1079, which adds a new configuration option (ignore_non_auto_fixable_on_exit) to config-explain, I noticed that phpcbf --help does not include information about the following options, and I believe it should: --config-show, --config-set, and --config-delete (also config-explain which is not a option, but is used to display additional information about setting configuration options). These configuration options appear to work with both phpcs and phpcbf, but are only shown in the phpcs --help output.

To reproduce

Steps to reproduce the behavior:

  1. Run phpcbf --help
  2. Confirm that the options mentioned above are not included.

Expected behavior

Since those options do work with phpcbf, I expected them to be included in the help screen. Happy to create a PR to fix it if it is confirmed that this is not an intentional behavior for a reason that I'm missing.

Versions (please complete the following information)

Operating System Ubuntu
PHP version 8.3
PHP_CodeSniffer version master
Standard N/A
Install type git clone

Additional context

The code that introduced the current version of the help screen was added in #447.

Please confirm

  • I have searched the issue list and am not opening a duplicate issue.
  • I have read the Contribution Guidelines and this is not a support question.
  • I confirm that this bug is a bug in PHP_CodeSniffer and not in one of the external standards.
  • I have verified the issue still exists in the master branch of PHP_CodeSniffer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant