Small updates to optionparser #2

Merged
merged 1 commit into from May 23, 2012

Conversation

Projects
None yet
2 participants
@ghost

ghost commented May 23, 2012

I added getAllOptions to return all the options set as an associative array. This was important to me as I was replacing getopt, and didn't want to have to change all the places where I check options.

I made parse return $argv, so that if people have normal arguments at the end of their command, they can be retrieved, for example:

./foobar -i 123 abcde

parse will return an array with one element set to "abcde"

mjackson merged commit e96e03b into mjackson:master May 23, 2012

Owner

mjackson commented May 23, 2012

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment