parse_comma_separated_list#

API documentation for tradeexecutor.cli.commands.shared_options.parse_comma_separated_list Python function.

parse_comma_separated_list(ctx, value)[source]#

Support comma separated, whitespaced, list as a command line argument with Typer.

Example:

@app.command()
def lagoon_deploy_vault(
    multisig_owners: Optional[str] = Option(None, callback=parse_comma_separated_list, envvar="MULTISIG_OWNERS", help="The list of acconts that are set to the cosigners of the Safe. The multisig threshold is number of cosigners - 1."),
)
Parameters:
  • ctx (Context) –

  • value (str) –

Return type:

list[str] | Any