Problem
The table_format setting under [main] in ~/.athenacli/athenaclirc is honored in the interactive REPL but silently ignored when running with -e.
Expected
-e should fall back to the configured table_format when --table-format is not passed on the command line.
Actual
-e always uses the --table-format CLI flag, whose default is csv, overwriting the configured value.
Root cause
In main.py:
@click.option('--table-format', type=str, default='csv', ...)
...
if execute:
...
athenacli.formatter.format_name = table_format # unconditional
The override happens whether or not the user passed --table-format. Changing the default to None and only overriding when non-None would fix it.
Problem
The
table_formatsetting under[main]in~/.athenacli/athenaclircis honored in the interactive REPL but silently ignored when running with-e.Expected
-eshould fall back to the configuredtable_formatwhen--table-formatis not passed on the command line.Actual
-ealways uses the--table-formatCLI flag, whose default iscsv, overwriting the configured value.Root cause
In
main.py:The override happens whether or not the user passed
--table-format. Changing the default toNoneand only overriding when non-Nonewould fix it.