apu 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/apu/version.rb +1 -1
- data/lib/apu.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbcc0524e6c73dbfe9e3b76e40856c185194a301
|
4
|
+
data.tar.gz: b7260a02ffd86e05bc44d20f78e1b4a27f94cfbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d18ec2e3f9097c2b2c79dfce6894f96841f766211321370a571331178a939871efc068be1316f39f3448d93cf3281dc8578a7629ce19562e2d36a673c5f5451f
|
7
|
+
data.tar.gz: 2772c2593cec8744b2da4cfe4acf858b94b5d5b098eab41e745c04a7e594ca712fd66616f4c9646387141ec124bf027a6f508bf475f031854ec2c1df31897692
|
data/lib/apu/version.rb
CHANGED
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
|
-
|
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
|