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

Add an option to prefer "--" arguments over "normal" arguments #5

Open
boenrobot opened this issue Feb 9, 2014 · 0 comments
Open

Comments

@boenrobot
Copy link
Member

When making command line applications, you sometimes want to make sure you separate the PHP options from the application options. Plus, some options are simply handled by PHP already, thus making their use impossible (e.g. "-d", "-l", etc.).

However, Console_CommmandLine intentionally ignores everything after "--".

There should be an option that allows users to prefer the collection formed from arguments after "--" (i.e. WITHOUT any options from PHP), assuming "--" is anywhere in $argv, and fallback to the current behavior when it's not.

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

No branches or pull requests

1 participant