MCPcopy Create free account
hub / github.com/lesspass/lesspass / range_type

Function range_type

cli/lesspass/cli.py:35–39  ·  view source on GitHub ↗
(value_string)

Source from the content-addressed store, hash-verified

33
34
35def range_type(value_string):
36 value = int(value_string)
37 if value not in range(5, 35 + 1):
38 raise argparse.ArgumentTypeError("%s is out of range, choose in [5-35]" % value)
39 return value
40
41
42def parse_args(args):

Callers 1

Calls

no outgoing calls

Tested by 1