ruby_cli 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/examples/hello_world +2 -4
  2. data/lib/ruby_cli.rb +1 -1
  3. metadata +3 -3
data/examples/hello_world CHANGED
@@ -11,7 +11,5 @@ class App
11
11
 
12
12
  end
13
13
 
14
- if __FILE__ == $0
15
- app = App.new(ARGV, __FILE__)
16
- app.run
17
- end
14
+ app = App.new(ARGV, __FILE__)
15
+ app.run
data/lib/ruby_cli.rb CHANGED
@@ -73,7 +73,7 @@ module RubyCLI
73
73
  puts "OPTIONS:"
74
74
  @default_options.each {|name, value| puts "#{name} = #{value}"}
75
75
  @options.each {|name, value| puts "#{name} = #{value}"}
76
- puts "No options" if @options.length == 0
76
+ puts "No options" if @options.length == 0 and @default_options == 0
77
77
 
78
78
  puts "ARGUMENTS:"
79
79
  @arguments.each {|name,value| puts "#{name} = #{value}"}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Martin Velez
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-11-27 00:00:00 -08:00
17
+ date: 2011-12-01 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies: []
20
20