cmdr 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cmdr.rb +4 -3
- 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
|
-
|
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
|
|