karg

option parser

Stats

StarsIssuesVersionUpdatedCreatedSize
karg
111.26.07 months ago6 years agoMinified + gzip package size for karg in KB

Readme

icon

karg

is the german word for meager, barren, sparse

karg

is also an option parser with meager features but simple setup and pretty output

meager features

does just the bare minimum:

  • automatic help generation
  • short and long option names
  • unnamed arguments
  • boolean toggle
  • dictionary output

simple setup

args = require('karg') """

scriptname
    additional  . ? unnamed arguments . **
    an-option   . ? some description  . = default
    boolean     . ? -b to turn it on  . = false
    switch      . ? -s to turn it off . = true
    invisible                         . = hidden
    
help
    some help
    
version       1.0.0

"""

pretty output

karg

npm package Build Status downloads

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.