summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2006-01-09 19:55:40 +0000
committerluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2006-01-09 19:55:40 +0000
commit1ed42169d30f3cd138db1493d37b2c06b010cadc (patch)
treea72522832f7e291d55d27a7a0c7bd84547d89293 /bin
parentd9c86d5c8fd965292dd91c28a34017309c75430b (diff)
downloadfacter-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-xbin/facter13
1 files changed, 6 insertions, 7 deletions
diff --git a/bin/facter b/bin/facter
index ed37fb5..61db7ea 100755
--- a/bin/facter
+++ b/bin/facter
@@ -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
}