skip to navigation
skip to content

Not Logged In

qarg 0.2

quick argument parsing

A simple concise way of defining arguments for an argparse.ArgumentParser

-- Syntax --

    comma seperated list of args

        <short name>(<long name>{<dest>[<type>=<default>@<action>#<nargs>$<const>

    all but short name are optional
    if long name is missing, short name will be used
    if long name is missing, and short name has len > 1
        long name will be short name and short name will be the
        first character of short name


supported add_argument options
    name or flags (short name & long name)
    action = '@'
    nargs = '#'
    const = '$'
    default = '='
    type = '['
    choices = not supported
    required = '!'
    help = not supported
    metavar = not supported
    dest = '{'

-- Example --

import qarg
ns = qarg.get('f(foo[int=1,r(bar,baz[str,p(pop@store_true')
File Type Py Version Uploaded on Size
qarg-0.2.tar.gz (md5) Source 2013-01-23 4KB
  • Downloads (All Versions):
  • 7 downloads in the last day
  • 73 downloads in the last week
  • 299 downloads in the last month