mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
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:
parent
2aa8d69b72
commit
fa622d3e14
4 changed files with 32 additions and 17 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue