2017 © Pedro Peláez
 

library parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

image

diversen/parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

  • Wednesday, December 14, 2016
  • by diversen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 240 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 50 % Grown

The README.md

Simple argv parser

Any options are denoted by '-' or '--' and any option value must be specified by '=', (*1)

You may cast options to int, float or booleans, (*2)

Install:

composer require diversen/parse-argv

Example

Run the following test script:, (*3)

php example.php  -h --help --message=hello --to-int=100 --to-float=100.5 --to-bool=false argument1 argument2

See: example.php, (*4)

Test

git clone git@github.com:diversen/parse-argv.git
cd parse-argv
composer install
./test.sh

License MIT, (*5)

The Versions

14/12 2016

dev-master

9999999-dev http://github.com/diversen/parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

  Sources   Download

MIT

console cli argv

14/12 2016

v1.2.1

1.2.1.0 http://github.com/diversen/parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

  Sources   Download

MIT

console cli argv

12/12 2016

v1.2.0

1.2.0.0 http://github.com/diversen/parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

  Sources   Download

MIT

console cli argv

11/12 2016

v1.1.0

1.1.0.0 http://github.com/diversen/parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

  Sources   Download

MIT

console cli argv

11/12 2016

v1.0.3

1.0.3.0 http://github.com/diversen/parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

  Sources   Download

MIT

console cli argv

16/06 2016

v1.0.2

1.0.2.0 http://github.com/diversen/parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

  Sources   Download

MIT

console cli argv

16/06 2016

v1.0.1

1.0.1.0 http://github.com/diversen/parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

  Sources   Download

MIT

console cli argv

16/06 2016

v1.0.0

1.0.0.0 http://github.com/diversen/parse-argv

Parse argv and get - and -- flags and values, and get any value without a flag.

  Sources   Download

MIT

console cli argv