JSPM

  • Created
  • Published
  • Downloads 99
  • Score
    100M100P100Q77199F
  • License Unlicense

option parser

Package Exports

  • karg

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (karg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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:

  • short and long option names
  • list of unnamed arguments
  • boolean toggle
  • dictionary output

simple setup

args = require('karg') """

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

"""

pretty output

karg