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