apu 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/apu/version.rb +1 -1
  3. data/lib/apu.rb +5 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c653f1497cad70c640aee94f45d578d6d34f4e43
4
- data.tar.gz: c4996f4179474b8b9f6ce176fc363bae223ed663
3
+ metadata.gz: bbcc0524e6c73dbfe9e3b76e40856c185194a301
4
+ data.tar.gz: b7260a02ffd86e05bc44d20f78e1b4a27f94cfbd
5
5
  SHA512:
6
- metadata.gz: 2a3b6422b9a9ef788b6a7ac9ef2cefb15d3ca94fb618d14717e0ed9f3bd0b193f060afbb6bdae626a5b829946107726ec547c06a378c202cf498440d5fc8d342
7
- data.tar.gz: b5959750564111ad9a991d81088d27f9b06313ca26fa793d15354f28cef3e512206c2e2f2f99b8bb6e91c3cf7f8eefb1414dcd0f76ac5ba1e71c13840bcc657e
6
+ metadata.gz: d18ec2e3f9097c2b2c79dfce6894f96841f766211321370a571331178a939871efc068be1316f39f3448d93cf3281dc8578a7629ce19562e2d36a673c5f5451f
7
+ data.tar.gz: 2772c2593cec8744b2da4cfe4acf858b94b5d5b098eab41e745c04a7e594ca712fd66616f4c9646387141ec124bf027a6f508bf475f031854ec2c1df31897692
data/lib/apu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Apu
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/lib/apu.rb CHANGED
@@ -11,10 +11,14 @@ module Apu
11
11
  @app_path = `pwd`.tr("\n","")
12
12
 
13
13
  create_options_parser
14
- #@url = ['-h', '--help', '-v', '--version'].include?(arguments.first) ? nil : arguments.shift
14
+ @line = ['-h', '--help', '-v', '--version'].include?(arguments.first) ? nil : arguments.shift
15
15
 
16
16
  @opt_parser.parse!(arguments)
17
17
 
18
+ unless @line
19
+ puts @opt_parser.help
20
+ exit
21
+ end
18
22
  end
19
23
 
20
24
  def create_options_parser
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cesar ferreira