Skip to content

cwmoss/final-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rules

use types and naming conventions

// required argument
string $_input_file => <input-file>

// optional argument
?string $_input_file=null => [input-file]

// optional flag
bool $force => --force

// option with required value
string $in => --in <in>

// option with required value
string $i => -i <option>

// option with short alias with required value
#[alias("i")]
string $in => -i|--in <in>

// option with required value and documented name
string $in__input_file => --in <input-file>

// option with optional value and documented name
string $in__input_file="/dev/null" => --in [input-file] default: /dev/null

use attributes

#[cli("input-file")]
string $inp => <input-file>

#[cli("-i --input input-file")]
string $inp => -i|--input=<input-file>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages