ni_nitdoc: arguments are what remains after process_options
authorJean Privat <jean@pryen.org>
Tue, 6 Aug 2013 16:37:13 +0000 (12:37 -0400)
committerJean Privat <jean@pryen.org>
Tue, 6 Aug 2013 16:37:13 +0000 (12:37 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/ni_nitdoc.nit

index caa25f7..9c62e32 100644 (file)
@@ -46,7 +46,6 @@ class NitdocContext
        private var opt_custom_footer_text: OptionString = new OptionString("Text displayed as footer of all pages", "--custom-footer-text")
 
        init do
-               self.arguments = toolcontext.option_context.rest
                toolcontext.option_context.add_option(opt_dir)
                toolcontext.option_context.add_option(opt_source)
                toolcontext.option_context.add_option(opt_sharedir)
@@ -57,6 +56,7 @@ class NitdocContext
                toolcontext.option_context.add_option(opt_custom_overview_text)
                toolcontext.option_context.add_option(opt_custom_menu_items)
                toolcontext.process_options
+               self.arguments = toolcontext.option_context.rest
 
                if arguments.length < 1 then
                        toolcontext.option_context.usage