Exemplo n.º 1
0
def postfook(opts, args):
    check_file_path(opts, args)
    if not opts.style in STYLES:
        raise ArgumentError('Available styles are "list" or "table".')
Exemplo n.º 2
0
def postfook(opts, args):
    check_file_path(opts, args)
    if not opts.outtype in ("html", "json"):
        raise ArgumentError('Available types are "html" or "json".')