Skip to content

Commit

Permalink
Changed --apply CLI flag to --apply-to-idea
Browse files Browse the repository at this point in the history
  • Loading branch information
shyiko committed Jul 24, 2017
1 parent ba83f4e commit 31a7fde
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ path/to/another-file.kt
- `--ruleset-repository` and `--ruleset-update` CLI arguments in favour of `--repository` and `--repository-update`
respectively (`--ruleset-*` will be removed in 1.0.0).
- `ktlint-intellij-idea-integration` binary
([Intellij IDEA integration](https://github.com/shyiko/ktlint#option-1-recommended) task is now included in `ktlint` (as `ktlint --apply`)).
([Intellij IDEA integration](https://github.com/shyiko/ktlint#option-1-recommended) task is now included in `ktlint` (as `ktlint --apply-to-idea`)).

## [0.8.1] - 2017-05-30

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ You might also want to take a look at [diffplug/spotless](https://github.com/dif

```sh
# inside project's root directory
ktlint --apply
ktlint --apply-to-idea
```

##### Option #2
Expand Down
2 changes: 1 addition & 1 deletion ktlint/src/main/kotlin/com/github/shyiko/ktlint/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ object Main {
private var debug: Boolean = false

// todo: make it a command in 1.0.0 (it's too late now as we might interfere with valid "lint" patterns)
@Option(name="--apply", usage = "Update Intellij IDEA project settings")
@Option(name="--apply-to-idea", usage = "Update Intellij IDEA project settings")
private var apply: Boolean = false
@Option(name="-y", hidden = true)
private var forceApply: Boolean = false
Expand Down

0 comments on commit 31a7fde

Please # to comment.