lib/opts: clients of `errors` use `join("\n")`
authorJean Privat <jean@pryen.org>
Sun, 31 May 2015 02:50:56 +0000 (22:50 -0400)
committerJean Privat <jean@pryen.org>
Sat, 13 Jun 2015 03:45:22 +0000 (23:45 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

examples/nitcorn/src/file_server_on_port_80.nit
lib/privileges/examples/drop_privileges.nit

index cf91d9f..a0b6e08 100644 (file)
@@ -33,7 +33,7 @@ opts.parse(args)
 
 # Check options errors and help
 if not opts.errors.is_empty or opt_help.value then
-       print opts.errors
+       print opts.errors.join("\n")
        print "Usage: file_server [Options]"
        opts.usage
        exit 1
index 932a87b..a35ca17 100644 (file)
@@ -28,7 +28,7 @@ opts.add_option(opt_ug)
 # parse and check command line options
 opts.parse(args)
 if not opts.errors.is_empty then
-       print opts.errors
+       print opts.errors.join("\n")
        print "Usage: drop_privileges [options]"
        opts.usage
        exit 1