rcd 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rcd.rb +8 -0
- metadata +1 -1
data/lib/rcd.rb
CHANGED
@@ -22,6 +22,14 @@ class Rcd # :nodoc:
|
|
22
22
|
argv.delete("#{key},#{path}")
|
23
23
|
end
|
24
24
|
|
25
|
+
opts.on('--add-pwd key', :REQUIRED, String, 'Add $(pwd) and a key in rcd_profile') do |key|
|
26
|
+
options.key = key
|
27
|
+
options.path = Dir.pwd
|
28
|
+
options.add_new_path = true
|
29
|
+
agv.delete('--add-pwd')
|
30
|
+
agv.delete(key)
|
31
|
+
end
|
32
|
+
|
25
33
|
opts.on('-l', 'List all the saved paths') do
|
26
34
|
options.list_all = true
|
27
35
|
argv.delete('-l')
|