cmdr 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/cmdr.rb +4 -3
  2. metadata +1 -1
data/lib/cmdr.rb CHANGED
@@ -23,6 +23,7 @@ class Cmdr
23
23
  })
24
24
 
25
25
  @v = opt[:public]
26
+ @aliasx = opt[:alias]
26
27
  @bottom_up_display = opt[:config] and opt[:config][:bottom_up_display] ? opt[:config][:bottom_up_display] : true
27
28
  @@app = app_mgr
28
29
 
@@ -36,9 +37,9 @@ class Cmdr
36
37
 
37
38
  command, options_string = raw_command[/\w+/], ($').strip
38
39
 
39
- aliasx = @v[:alias]
40
- if aliasx.has_key? command then
41
- command, options_string2 = aliasx[command][/\w+/], ($').strip
40
+
41
+ if @aliasx.has_key? command then
42
+ command, options_string2 = @aliasx[command][/\w+/], ($').strip
42
43
  options_string = options_string2 + ' '+ options_string
43
44
  end
44
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmdr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors: []
7
7