rubyshelltools 0.0.3 → 0.0.4
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.
- data/lib/rst.rb +4 -3
- data/rst.rb +1 -1
- metadata +1 -1
data/lib/rst.rb
CHANGED
@@ -44,7 +44,8 @@ module RST
|
|
44
44
|
def initialize(args)
|
45
45
|
load_defaults
|
46
46
|
parse_options(args)
|
47
|
-
|
47
|
+
_command = args.shift
|
48
|
+
@command = _command if _command
|
48
49
|
@files = args
|
49
50
|
end
|
50
51
|
|
@@ -67,7 +68,7 @@ module RST
|
|
67
68
|
# @see #run_option
|
68
69
|
def parse_options(args)
|
69
70
|
OptionParser.new do |opts|
|
70
|
-
opts.banner = 'Usage: rst [COMMAND
|
71
|
+
opts.banner = 'Usage: rst [COMMAND] [options] [FILES..]'
|
71
72
|
|
72
73
|
opts.separator "\nOptions:"
|
73
74
|
|
@@ -119,7 +120,7 @@ module RST
|
|
119
120
|
@options[:list_defaults] = v
|
120
121
|
end
|
121
122
|
|
122
|
-
opts.on('--clear-defaults', '
|
123
|
+
opts.on('--clear-defaults', 'delete previously saved defaults') do |v|
|
123
124
|
@options[:clear_defaults] = v
|
124
125
|
end
|
125
126
|
|
data/rst.rb
CHANGED