ulg 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/ulg +9 -1
  2. metadata +2 -2
data/bin/ulg CHANGED
@@ -2,8 +2,10 @@
2
2
 
3
3
  require 'ulg'
4
4
 
5
+ VERSION = "0.2.1"
6
+
5
7
  ulg = ULG.new
6
- opt = Getopt::Std.getopts("f:o:s:dh")
8
+ opt = Getopt::Std.getopts("f:o:s:dhv")
7
9
 
8
10
  def usage
9
11
  puts "Usage: ulg.rb [-o OUTPUT] [-s FILE] [-d] FILE FILE..."
@@ -12,10 +14,16 @@ def usage
12
14
  puts " -o OUTPUT Output format (png, dot, svg). Default png"
13
15
  puts " -s FILE Save to file"
14
16
  puts " -d Debug mode"
17
+ puts " -v Show version"
15
18
  puts " -h This help"
16
19
  exit
17
20
  end
18
21
 
22
+ if opt["v"]
23
+ puts "Version #{VERSION}"
24
+ exit
25
+ end
26
+
19
27
  if opt["h"]
20
28
  usage
21
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ulg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-16 00:00:00.000000000 Z
12
+ date: 2013-04-02 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Ultra Light Graphs - Text editor friendly markup language for creating
15
15
  simple graphs.