in composer_local_dev/cli.py [0:0]
def convert(self, value, param, ctx):
if isinstance(value, int):
return value
if value == "all":
return value
try:
number = int(value)
if number < 1:
raise ValueError("Not a positive number.")
return number
except ValueError:
self.fail(
f"{value!r} is not a positive integer or 'all' keyword",
param,
ctx,
)