You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[fix] cli_evaluate to properly handle Namespace arguments (#733)
* Fix cli_evaluate to properly handle Namespace arguments
This fixes an issue where cli_evaluate would fail when called programmatically
with an argparse.Namespace object and empty sys.argv. The function now:
1. Always parses default arguments first
2. Only checks sys.argv when no args are provided (args is None)
3. Merges provided Namespace attributes with defaults
This enables the function to be called from other Python modules while
maintaining backward compatibility with command-line usage.
Fixes the issue where passing args as Namespace fails due to sys.argv check.
* lint
0 commit comments