nvflare.fuel.hci.cmd_arg_utils module

class ArgValidator(name)[source]

Bases: ArgumentParser

Validator for admin shell commands that uses argparse to check arguments and get usage through print_help.

Parameters

name – name of the program to pass to ArgumentParser

error(message: string)[source]

Prints a usage message incorporating the message to stderr and exits.

If you override this in a subclass, it should not return – it should either exit or raise an exception.

get_usage() str[source]
validate(args)[source]
join_args(segs: List[str]) str[source]
split_to_args(line: str) List[str][source]