Skip to content

Commit

Permalink
Use lowercase options
Browse files Browse the repository at this point in the history
  • Loading branch information
alexherbo2 committed Sep 27, 2021
1 parent 0b529d1 commit f3ad3d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,10 @@ Add [`kcr send --lines`] for sending the nested command.

**Options**

- `-V`, `--value <name>` ⇒ Value name
- `-O`, `--option <name>` ⇒ Option name
- `-R`, `--register <name>` ⇒ Register name
- `-S`, `--shell <command>` ⇒ Shell command
- `-v`, `--value <name>` ⇒ Value name
- `-o`, `--option <name>` ⇒ Option name
- `-r`, `--register <name>` ⇒ Register name
- `-s`, `--shell <command>` ⇒ Shell command

```
kcr get [flags] [expansions]
Expand Down
8 changes: 4 additions & 4 deletions src/kakoune/cli.cr
Original file line number Diff line number Diff line change
Expand Up @@ -185,19 +185,19 @@ module Kakoune::CLI
parser.on("get", "Get states from a client in session") do
options.command = :get

parser.on("-V NAME", "--value=NAME", "Value name") do |name|
parser.on("-v NAME", "--value=NAME", "Value name") do |name|
options.kakoune_arguments << "%val{#{name}}"
end

parser.on("-O NAME", "--option=NAME", "Option name") do |name|
parser.on("-o NAME", "--option=NAME", "Option name") do |name|
options.kakoune_arguments << "%opt{#{name}}"
end

parser.on("-R NAME", "--register=NAME", "Register name") do |name|
parser.on("-r NAME", "--register=NAME", "Register name") do |name|
options.kakoune_arguments << "%reg{#{name}}"
end

parser.on("-S COMMAND", "--shell=COMMAND", "Shell command") do |command|
parser.on("-s COMMAND", "--shell=COMMAND", "Shell command") do |command|
options.kakoune_arguments << "%sh{#{command}}"
end
end
Expand Down

0 comments on commit f3ad3d9

Please sign in to comment.