gemi 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gemi}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yutaka HARA"]
@@ -28,6 +28,10 @@ module Gemi
28
28
  def parse(argv)
29
29
  confpath = GEMIRC
30
30
 
31
+ if %w(-h --help).any?{|o| argv.include?(o)}
32
+ return confpath, nil, [], []
33
+ end
34
+
31
35
  if %w(-r --rc).include?(argv.first)
32
36
  confpath = argv[1]
33
37
  if not File.exist?(confpath)
@@ -70,6 +70,7 @@ module Gemi
70
70
  " -c, --clean : gem clean",
71
71
  " -- : pass the arguments to gem commands",
72
72
  " -r PATH : specify the path of gemirc",
73
+ " -h, --help : show this message",
73
74
  ].join("\n")
74
75
  end
75
76
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yutaka HARA