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
- get_file_extension(file: str) str [source]¶
Get extension part of the specified file name. If the file’s name is ended with number, then the extension is before it.
- Parameters:
file – the file name
Returns: extension part of the file name
- parse_command_line(line: str) -> (<class 'str'>, typing.List[str], <class 'str'>)[source]¶
Parse the command line and extract command args and command props, if any
- Parameters:
line
Returns: