From 0ec6fb7c1ca350c0b6163b3607640bc69062f766 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Tue, 18 Feb 2025 15:57:27 +0100 Subject: [PATCH] Add --lines to help output. --- README.md | 4 ++++ src/main.jl | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 6455af1..e6dc7a2 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,10 @@ OPTIONS -i, --inplace Format files in place. + --lines=: + Limit formatting to the line range to . Multiple + ranges can be formatted by specifying multiple --lines arguments. + -o , --output= File to write formatted output to. If no output is given, or if the file is `-`, output is written to stdout. diff --git a/src/main.jl b/src/main.jl index 7a4c717..da889fc 100644 --- a/src/main.jl +++ b/src/main.jl @@ -139,6 +139,10 @@ function print_help() -i, --inplace Format files in place. + --lines=: + Limit formatting to the line range to . Multiple + ranges can be formatted by specifying multiple --lines arguments. + -o , --output= File to write formatted output to. If no output is given, or if the file is `-`, output is written to stdout.