Skip to content

Commit

Permalink
Add info about --help to CLI usage text
Browse files Browse the repository at this point in the history
  • Loading branch information
grodin authored Jun 12, 2024
1 parent cf53934 commit d9a3c67
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/main/java/com/facebook/ktfmt/cli/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ private const val EXIT_CODE_SUCCESS = 0

private val USAGE =
"""
Usage: ktfmt [--dropbox-style | --google-style | --kotlinlang-style] [--dry-run] [--set-exit-if-changed] [--stdin-name=<name>] [--do-not-remove-unused-imports] File1.kt File2.kt ...
Or: ktfmt @file
|Usage: ktfmt [--dropbox-style | --google-style | --kotlinlang-style] [--dry-run] [--set-exit-if-changed] [--stdin-name=<name>] [--do-not-remove-unused-imports] File1.kt File2.kt ...
|Or: ktfmt @file
|
|For more detail see ktfmt --help
"""
.trimIndent()
.trimMargin()

class Main(
private val input: InputStream,
Expand Down

0 comments on commit d9a3c67

Please sign in to comment.