cljfmt icon indicating copy to clipboard operation
cljfmt copied to clipboard

Show default values for boolean CLI options

Open or opened this issue 2 years ago • 0 comments

Annoyingly this requires those two summary functions, but I think this is an important feature to show what the default configuration actually is. The functions are taken from the default functions in tools.cli, with some code thrown out that doesn't apply here.

cljfmt [OPTIONS] COMMAND [PATHS ...]
      --help
      --parallel
      --project-root PROJECT_ROOT                  .
      --file-pattern FILE_PATTERN                  \.clj[csx]?$
      --indents INDENTS_PATH
      --alias-map ALIAS_MAP_PATH
      --[no-]ansi                                  on
      --[no-]indentation                           on
      --[no-]remove-multiple-non-indenting-spaces  off
      --[no-]remove-surrounding-whitespace         on
      --[no-]remove-trailing-whitespace            on
      --[no-]insert-missing-whitespace             on
      --[no-]remove-consecutive-blank-lines        on
      --[no-]split-keypairs-over-multiple-lines    off

or avatar May 10 '22 10:05 or