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.
Files changed (3) hide show
  1. data/lib/rst.rb +4 -3
  2. data/rst.rb +1 -1
  3. 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
- @command ||= args.shift
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 [COMMAND ....]] [options] [FILES..]'
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', 'Save given params as defaults') do |v|
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
@@ -3,7 +3,7 @@ require 'logger'
3
3
  # # Ruby Shell Tools Top-level file
4
4
  module RST
5
5
  # Gem-version
6
- VERSION = '0.0.3'
6
+ VERSION = '0.0.4'
7
7
 
8
8
  # Path to the docs used by the software
9
9
  DOCS = File.expand_path('../assets/docs', __FILE__)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyshelltools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: