Esempio 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".')
Esempio 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".')