Skip to content

Commit

Permalink
Rename -L to -D option for log path
Browse files Browse the repository at this point in the history
  • Loading branch information
alexherbo2 committed Sep 27, 2021
1 parent 0ba0eb5 commit 0b529d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ evaluate-commands %sh{
- `-r`, `--raw` ⇒ Use raw output
- `-l`, `--lines` ⇒ Read input as [JSON Lines]
- `-d`, `--debug` ⇒ Debug mode (Default: [`KCR_DEBUG`], **1** for true, **0** for false)
- `-L`, `--log <path>` ⇒ Log path (Default: **stderr**)
- `-D`, `--log <path>` ⇒ Log path (Default: **stderr**)
- `-v`, `--version` ⇒ Display version
- `-V`, `--version-notes` ⇒ Display version notes
- `-h`, `--help` ⇒ Show help
Expand Down
2 changes: 1 addition & 1 deletion src/kakoune/cli.cr
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module Kakoune::CLI
Log.level = ::Log::Severity::Debug
end

parser.on("-L PATH", "--log=PATH", "Log path") do |path|
parser.on("-D PATH", "--log=PATH", "Log path") do |path|
::Log.setup(:debug, ::Log::IOBackend.new(File.new(path, "a")))
end

Expand Down

0 comments on commit 0b529d1

Please sign in to comment.