Skip to content

Commit fef7b9d

Browse files
authored
Fix typo in ACON::Command#option method (#3)
1 parent 3266f80 commit fef7b9d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

shard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: athena-console
22

3-
version: 0.1.0
3+
version: 0.1.1
44

55
crystal: '>= 0.35.0'
66

src/athena-console.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ alias ACON = Athena::Console
7171
# end
7272
# ```
7373
module Athena::Console
74-
VERSION = "0.1.0"
74+
VERSION = "0.1.1"
7575

7676
# Includes the commands that come bundled with `Athena::Console`.
7777
module Commands; end

src/command.cr

+3-3
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ abstract class Athena::Console::Command
327327

328328
# Adds an `ACON::Input::Option` to `self` with the provided *name*.
329329
# Optionally supports setting its *shortcut*, *value_mode*, *description*, and *default* value.
330-
def option(name : String, shotcut : String? = nil, value_mode : ACON::Input::Option::Value = :none, description : String = "", default = nil) : self
331-
@definition << ACON::Input::Option.new name, shotcut, value_mode, description, default
330+
def option(name : String, shortcut : String? = nil, value_mode : ACON::Input::Option::Value = :none, description : String = "", default = nil) : self
331+
@definition << ACON::Input::Option.new name, shortcut, value_mode, description, default
332332

333333
if full_definition = @full_definition
334-
full_definition << ACON::Input::Option.new name, shotcut, value_mode, description, default
334+
full_definition << ACON::Input::Option.new name, shortcut, value_mode, description, default
335335
end
336336

337337
self

0 commit comments

Comments
 (0)