Adding --serve back in as an option to puppetd, and failing when a handler is specified but missing

git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2451 980ebf18-57e1-0310-9a29-db15c13687c0
This commit is contained in:
luke 2007-05-01 22:20:17 +00:00
Родитель fb4f04da2c
Коммит 1ccdff5505
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -169,6 +169,7 @@ options = [
[ "--logdest", "-l", GetoptLong::REQUIRED_ARGUMENT ],
[ "--onetime", "-o", GetoptLong::NO_ARGUMENT ],
[ "--test", "-t", GetoptLong::NO_ARGUMENT ],
[ "--serve", "-s", GetoptLong::REQUIRED_ARGUMENT ],
[ "--no-client", GetoptLong::NO_ARGUMENT ],
[ "--verbose", "-v", GetoptLong::NO_ARGUMENT ],
[ "--version", "-V", GetoptLong::NO_ARGUMENT ],
@ -207,6 +208,8 @@ begin
when "--serve"
if klass = Puppet::Network::Server::Handler.handler(arg)
options[:serve][klass.name] = klass
else
raise "Could not find handler for %s" % arg
end
when "--enable"
options[:enable] = true