ni_nitdoc: Cleaning nitdoc options
authorStefan Lage <lagestfan@gmail.com>
Fri, 28 Jun 2013 22:17:45 +0000 (18:17 -0400)
committerStefan Lage <lagestfan@gmail.com>
Thu, 4 Jul 2013 18:41:43 +0000 (14:41 -0400)
Delete useless options to get only the nitdoc options

Signed-off-by: Stefan Lage <lagestfan@gmail.com>

src/ni_nitdoc.nit

index c2110c0..6f31324 100644 (file)
@@ -38,6 +38,7 @@ class Nitdoc
                # We need a model to collect stufs
                self.toolcontext = toolcontext
                self.arguments = toolcontext.option_context.rest
+               toolcontext.option_context.options.clear
                toolcontext.option_context.add_option(opt_dir)
                toolcontext.option_context.add_option(opt_source)
                toolcontext.option_context.add_option(opt_sharedir)