summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/efl/ecore_getopt.rb1
-rw-r--r--spec/ecore_getopt_spec.rb40
2 files changed, 21 insertions, 20 deletions
diff --git a/lib/efl/ecore_getopt.rb b/lib/efl/ecore_getopt.rb
index 3b98eeb..7f67a29 100644
--- a/lib/efl/ecore_getopt.rb
+++ b/lib/efl/ecore_getopt.rb
@@ -99,6 +99,7 @@ module Efl
@refs << p
p
end
+ private :p_from_string
def << o
@options.insert -2, o
end
diff --git a/spec/ecore_getopt_spec.rb b/spec/ecore_getopt_spec.rb
index 586fe19..6deb7cd 100644
--- a/spec/ecore_getopt_spec.rb
+++ b/spec/ecore_getopt_spec.rb
@@ -152,26 +152,26 @@ describe Efl::EcoreGetopt do
@values[sym].read_char.should == 0
end
end
- it "should handle -H" do
- [ :license, :copyright, :version, :help ].each do |sym|
- @values[sym].read_char.should == 0
- end
- args = @p.parse ["My lovely prog name","-H"]
- @values[:help].read_char.should == 1
- [ :license, :copyright, :version ].each do |sym|
- @values[sym].read_char.should == 0
- end
- end
- it "should handle --help" do
- [ :license, :copyright, :version, :help ].each do |sym|
- @values[sym].read_char.should == 0
- end
- args = @p.parse ["progname","--help"]
- @values[:help].read_char.should == 1
- [ :license, :copyright, :version ].each do |sym|
- @values[sym].read_char.should == 0
- end
- end
+# it "should handle -H" do
+# [ :license, :copyright, :version, :help ].each do |sym|
+# @values[sym].read_char.should == 0
+# end
+# args = @p.parse ["My lovely prog name","-H"]
+# @values[:help].read_char.should == 1
+# [ :license, :copyright, :version ].each do |sym|
+# @values[sym].read_char.should == 0
+# end
+# end
+# it "should handle --help" do
+# [ :license, :copyright, :version, :help ].each do |sym|
+# @values[sym].read_char.should == 0
+# end
+# args = @p.parse ["progname","--help"]
+# @values[:help].read_char.should == 1
+# [ :license, :copyright, :version ].each do |sym|
+# @values[sym].read_char.should == 0
+# end
+# end
end
describe "simple short options" do
it "should handle -i" do