diff options
author | luke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a> | 2006-01-09 19:55:40 +0000 |
---|---|---|
committer | luke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a> | 2006-01-09 19:55:40 +0000 |
commit | 1ed42169d30f3cd138db1493d37b2c06b010cadc (patch) | |
tree | a72522832f7e291d55d27a7a0c7bd84547d89293 /bin | |
parent | d9c86d5c8fd965292dd91c28a34017309c75430b (diff) | |
download | facter-1ed42169d30f3cd138db1493d37b2c06b010cadc.tar.gz facter-1ed42169d30f3cd138db1493d37b2c06b010cadc.tar.xz facter-1ed42169d30f3cd138db1493d37b2c06b010cadc.zip |
Redoing how tags work.
git-svn-id: http://reductivelabs.com/svn/facter/trunk@73 1f5c1d6a-bddf-0310-8f58-fc49e503516a
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/facter | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -8,17 +8,15 @@ require 'getoptlong' require 'facter' -Facter.load - $debug = 0 config = nil result = GetoptLong.new( - [ "--version", "-v", GetoptLong::NO_ARGUMENT ], - [ "--help", "-h", GetoptLong::NO_ARGUMENT ], - [ "--debug", "-d", GetoptLong::NO_ARGUMENT ], - [ "--config", "-c", GetoptLong::REQUIRED_ARGUMENT ] + [ "--version", "-v", GetoptLong::NO_ARGUMENT ], + [ "--help", "-h", GetoptLong::NO_ARGUMENT ], + [ "--debug", "-d", GetoptLong::NO_ARGUMENT ], + [ "--config", "-c", GetoptLong::REQUIRED_ARGUMENT ] ) result.each { |opt,arg| @@ -32,7 +30,8 @@ result.each { |opt,arg| puts "There is no help yet" exit else - raise "Invalid option '#{opt}'" + $stderr.puts "Invalid option '#{opt}'" + exit(12) end } |