8000 Support --directories option in format.py by Mytherin · Pull Request #17354 · duckdb/duckdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support --directories option in format.py #17354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
9 changes: 9 additions & 0 deletions scripts/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,11 @@ def print_usage():
else:
print_usage()

directories = False
if len(sys.argv) > 2:
for arg in sys.argv[2:]:
prev_directories = directories
directories = False
if arg == '--check':
check_only = True
elif arg == '--fix':
Expand All @@ -151,6 +154,12 @@ def print_usage():
silent = True
elif arg == '--force':
force = True
elif arg == '--directories':
directories = True
formatted_directories = []
elif prev_directories:
directories = True
formatted_directories += [arg]
else:
print_usage()

Expand Down
Loading
0