Skip to content

Commit

Permalink
main: fix example config
Browse files Browse the repository at this point in the history
  • Loading branch information
aerickson committed Jul 19, 2024
1 parent 3a5a941 commit 5c31d08
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions directory_cleaner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def parse_config_file(config_path):
config = toml.load(file)
if "exclusion_patterns" not in config:
print(
f"ERROR: Config file '{config_path}' is missing 'exclusion_patterns' section."
f"ERROR: Config file '{config_path}' is missing 'exclusion_patterns' key."
)
sys.exit(1)
return config
Expand Down Expand Up @@ -46,11 +46,11 @@ def main():
epilog=textwrap.dedent(
"""\
Config file format (TOML):
[exclusion_patterns]
patterns = [
'directory_a', # all files in this directory will be excluded from deletion
'file_xyz',
]
exclusion_patterns = [
"directory_a", # This directory and all files inside will be excluded from deletion
"file_xyz"
]
"""
),
)
Expand Down

0 comments on commit 5c31d08

Please sign in to comment.