Signed-off-by: Jean Privat <jean@pryen.org>
# Check options errors and help
if not opts.errors.is_empty or opt_help.value then
# Check options errors and help
if not opts.errors.is_empty or opt_help.value then
+ print opts.errors.join("\n")
print "Usage: file_server [Options]"
opts.usage
exit 1
print "Usage: file_server [Options]"
opts.usage
exit 1
# parse and check command line options
opts.parse(args)
if not opts.errors.is_empty then
# parse and check command line options
opts.parse(args)
if not opts.errors.is_empty then
+ print opts.errors.join("\n")
print "Usage: drop_privileges [options]"
opts.usage
exit 1
print "Usage: drop_privileges [options]"
opts.usage
exit 1