Skip to content

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

@boenrobot

Description

@boenrobot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions