Skip to content

Commit

Permalink
dynamic default values in help
Browse files Browse the repository at this point in the history
  • Loading branch information
dimateos committed Feb 4, 2025
1 parent 9e381c9 commit 0222090
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/ci/trim_whitespaces.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ DEFAULT_CWD="./"
display_help() {
echo "Usage: $0 [options]"
echo "Options:"
echo " --path PATH Relative path to the folders (default: './' for CWD)"
echo " --folders FOLDERS Comma-separated list of folders (default: 'src,include,tests')"
echo " --extensions EXTS Comma-separated list of extensions (default: '*.cpp,*.h,*.hpp,*.txt')"
echo " --path PATH Relative path to the folders (default: '$DEFAULT_CWD')"
echo " --folders FOLDERS Comma-separated list of folders (default: '$(IFS=,; echo "${DEFAULT_FOLDERS[*]}")')"
echo " --extensions EXTS Comma-separated list of extensions (default: '$(IFS=,; echo "${DEFAULT_EXTENSIONS[*]}")')"
echo " --preview Enable preview mode (list files without making changes)"
echo " --help Display this help message"
exit 0
Expand Down

0 comments on commit 0222090

Please sign in to comment.