Module Import alias TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body Import alias FunctionDef arguments args NameParam NameParam NameParam defaults body If BoolOpOr CompareLt NameLoad Num CompareNotEq BinOpMod NameLoad Num Num body Raise Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotIn AttributeLoad NameLoad attr TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad Str body Raise Call AttributeLoad NameLoad attr Str keyword ListLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad keyword Str Call AttributeLoad NameLoad attr Str keyword Str Call AttributeLoad NameLoad attr Str keyword Str keyword Call NameLoad Call AttributeLoad NameLoad attr
N/A N/A click N/A N/A urllib parser urlparse N/A N/A N/A ImportError N/A N/A urlparse validate_count N/A N/A ctx param value N/A N/A N/A N/A N/A value 0 N/A N/A value 2 0 N/A N/A N/A N/A click BadParameter Should be a positive, even integer. N/A value N/A URL N/A N/A click ParamType N/A N/A name url convert N/A N/A self value param ctx N/A N/A N/A N/A N/A isinstance value tuple N/A N/A value N/A N/A urlparse urlparse value N/A N/A N/A value scheme N/A http https N/A N/A N/A N/A self fail N/A invalid URL scheme (%s).  Only HTTP URLs are allowed N/A value scheme param ctx N/A value N/A N/A cli N/A N/A count foo url N/A N/A N/A Validation.

    This example validates parameters in different ways.  It does it
    through callbacks, through a custom type as well as by validating
    manually in the function.
     N/A N/A N/A foo None N/A foo wat N/A N/A N/A N/A click BadParameter If a value is provided it needs to be the value "wat". param_hint N/A --foo N/A N/A N/A click echo N/A count: %s count N/A N/A N/A click echo N/A foo: %s foo N/A N/A N/A click echo N/A url: %s N/A repr url N/A N/A N/A click command N/A N/A click option --count default 2 callback validate_count help A positive even number. N/A N/A click option --foo help A mysterious parameter. N/A N/A click option --url help A URL type N/A URL N/A N/A click version_option