nvflare.fuel.utils.argument_utils module¶
- class SafeArgumentParser(**kwargs)[source]¶
Bases:
ArgumentParser
Safe version of ArgumentParser which doesn’t exit on error
- parse_var(s)[source]¶
Parse string variable into key-value tuple.
Returns (key, value) tuple from string with equals sign with the portion before the first equals sign as the key and the rest as the value.
- Parameters:
s – string to parse
Returns: Tuple of key and value