cmdr 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cmdr.rb +12 -9
- metadata +1 -1
data/lib/cmdr.rb
CHANGED
@@ -11,22 +11,25 @@ class Cmdr
|
|
11
11
|
|
12
12
|
def initialize(main_opt={}, app_mgr=nil)
|
13
13
|
opt = {
|
14
|
-
public: {
|
15
|
-
|
16
|
-
|
17
|
-
{
|
18
|
-
|
19
|
-
|
14
|
+
public: {
|
15
|
+
alias: {},
|
16
|
+
user:
|
17
|
+
{'-1' =>
|
18
|
+
{
|
19
|
+
history:
|
20
|
+
{list: [], index: []}
|
21
|
+
}
|
20
22
|
}
|
21
|
-
}
|
22
23
|
},
|
23
24
|
config: {bottom_up_display: true}
|
24
|
-
}
|
25
|
+
}
|
26
|
+
opt.merge!(main_opt[:public]) unless main_opt[:public].empty?
|
27
|
+
opt.merge!(main_opt[:config]) unless main_opt[:config].empty?
|
25
28
|
|
26
29
|
@v = opt[:public]
|
27
30
|
@bottom_up_display = opt[:config][:bottom_up_display]
|
28
31
|
@@app = app_mgr
|
29
|
-
|
32
|
+
|
30
33
|
super()
|
31
34
|
end
|
32
35
|
|