lib/macros4cuke/cli/cmd-line.rb in macros4cuke-0.5.14 vs lib/macros4cuke/cli/cmd-line.rb in macros4cuke-0.5.15
- old
+ new
@@ -68,12 +68,10 @@
options[:version] = true
end
end
end
- public
-
# Perform the command-line parsing
def parse!(theCmdLineArgs)
begin
parser.parse!(theCmdLineArgs.dup)
rescue Macros4Cuke::CmdLineError => exc
@@ -110,10 +108,10 @@
def validated_feature_path(theProjectPath)
dirs = [theProjectPath, 'features', 'support']
feature_path = dirs.reduce(Pathname.getwd) do |path, dir_name|
path += dir_name
unless path.exist?
- fail DirectoryNotFound.new(path.relative_path_from(Pathname.getwd))
+ raise DirectoryNotFound.new(path.relative_path_from(Pathname.getwd))
end
path
end
return feature_path