Skip to content

shellib/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

cli

A simple shell library with cli utilities.

hasflag

Checks if a flag is present in the arguments. Returns 'true' if its present, or nothing otherwise.

Example:

hasflag --help $*

readopt

Read the value of an option. It returns the next argument following the option.

Example:

readopt --log-level $*

or

Returns the first argument if not empty, the second otherwise.

value=$(or $candidate "default value")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages