examples: annotate examples
[nit.git] / lib / privileges / examples / drop_privileges.nit
index 932a87b..016b8da 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 # Example using the privileges module to drop privileges from root
-module drop_privileges
+module drop_privileges is example
 
 import privileges
 
@@ -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