refactor: Replace --index with --with-headers in the list command to make it more explicit. Change it so it affects the csv output too.

This commit is contained in:
Cristian 2020-09-08 09:17:10 -05:00 committed by Cristian Vargas
parent 2aa8d69b72
commit fa622d3e14
4 changed files with 32 additions and 17 deletions

View file

@ -709,7 +709,7 @@ def list_all(filter_patterns_str: Optional[str]=None,
csv: Optional[str]=None,
json: bool=False,
html: bool=False,
index: bool=False,
with_headers: bool=False,
out_dir: str=OUTPUT_DIR) -> Iterable[Link]:
"""List, filter, and export information about archive entries"""
@ -742,7 +742,7 @@ def list_all(filter_patterns_str: Optional[str]=None,
out_dir=out_dir,
)
print(printable_folders(folders, json=json, csv=csv, html=html, index=index))
print(printable_folders(folders, json=json, csv=csv, html=html, with_headers=with_headers))
return folders