pmlcode 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abfc5fd353c408017aed3442d35e2ce4568a200f
4
- data.tar.gz: 9b63d608dfb25a6592a0fb692b821b9506c1ee4c
3
+ metadata.gz: 454dcaffe9ac7b63687a11ae68c4542be8b72676
4
+ data.tar.gz: febd592ae42c593fcdfe1d2152f09092e8b44839
5
5
  SHA512:
6
- metadata.gz: b9f02ef23745fccf84493f91d9b9df1632f9318c8c6f546d00d28d1be6614750d6d613c184edaef7ade0f463ca2abc2eab7ebdf475ed5604d71aa065b7a4ccbf
7
- data.tar.gz: 6e9fc8e886d2fc8529064bba49f4fecc55ec923cb42754d74bc18d798c3d14d18275378ffa38d835ef351e49ac00eeca75fb18a8e9d3f76c4234fdff8efda055
6
+ metadata.gz: 220ab845e2e4432e435d1bd4acb5a8456ec55f55f2f0d08e8adc2db1f2752d07858de5b99fa9355fd987c4da0ccef7dab89240d7116338e75bc68ba31eb8000d
7
+ data.tar.gz: 834b6644bc03c7ee1bfd07711641a0e4d21f8833f83af4466f9a2b0d3c07c17584ed54a1f810c2ac0932af49e6341ad227089abe62127647e98c38e4f1c02358
data/lib/pmlcode/cli.rb CHANGED
@@ -61,6 +61,8 @@ module PMLCode::CLI
61
61
  Currently the ref retrieved from git repositories is always in the form `chapter.snapshot`,
62
62
  using the information matched using the --pattern.
63
63
 
64
+ ## OPTIONS
65
+
64
66
  EOU
65
67
 
66
68
  REQUIRED_PATTERN_CAPTURES = %w(coderoot chapter snapshot path)
@@ -131,15 +133,15 @@ module PMLCode::CLI
131
133
  OptionParser.new do |opts|
132
134
  opts.banner = USAGE
133
135
 
134
- opts.on("-t [TYPE]", "--type", [:sparse, :full], "Export type (sparse, full)") do |value|
136
+ opts.on("-t [TYPE]", "--type", [:sparse, :full], "Export type (sparse, full; default: #{options.type})") do |value|
135
137
  options.type = value
136
138
  end
137
139
 
138
- opts.on("-a [PATH]", "--application-directory", "Application directory (default: #{options.app}") do |value|
140
+ opts.on("-a [PATH]", "--application-directory", "Application directory (default: #{options.app || "NONE"})") do |value|
139
141
  options.app = value
140
142
  end
141
143
 
142
- opts.on("-p [PATTERN]", "--pattern", "Pattern (default: #{options.pattern.source}") do |value|
144
+ opts.on("-p [PATTERN]", "--pattern", "Pattern (default: \"#{options.pattern.source}\")") do |value|
143
145
  options.pattern = Regexp.new(value)
144
146
  end
145
147
 
@@ -1,3 +1,3 @@
1
1
  module PMLCode
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pmlcode
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
  - Bruce Williams