c9s / GetOptionKit

An object-oriented option parser library for PHP, which supports type constraints, flag, multiple flag, multiple values, required value checking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suport -- to separate paths from arguments.

donatj opened this issue · comments

When using git its often useful to prevent confusion by using -- to separate paths from revisions and arguments. An example of this for example would be:
git difftool 545988dae14a4361cb8ae795dd61fba83dd9444e -- server/cron/import.php

I would find this functionality very helpful to my work.

I remember the feature is already there? not quite sure.

Check out CLIFramework or PHPBrew for example, they use GetOptionKit as well.

https://github.com/c9s/php-CLIFramework
https://github.com/c9s/phpbrew

phpbrew supports the -- separator.