nvflare.fuel.hci.cmd_arg_utils module¶
- class ArgValidator(name)[source]¶
Bases:
ArgumentParserValidator 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. :param file: the file name
Returns: extension part of the file name