Change default CLI behavior to newline separated output #647
mwaxmonsky
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
No objections here. It is easy to change back to a comma if that is what you need ( |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current default implementation of
ccpp_datafile.py
outputs a comma separated list of elements:elem1,elem2,elem3,...
. This is fine for small lists but the tests are having to concatenate large lists of strings to compare the output:I wanted to get an idea from the interested parties if this is required or actively being used outside of the tests at this point?
In terms of a CLI, this goes against other similar CLI's (
ls
,grep
,find
, etc.) as it requires the user to manually separate the resulting string to do further comparisons viased
,awk
, etc. And the current test interface in python is further complicated because it is doing a set comparison anyway after separating the string.Would there be any issues if we defaulted to a newline separated output instead of a
,
separated string output?Beta Was this translation helpful? Give feedback.
All reactions