contrib/nitiwiki: display status if no other option requested
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 7 May 2015 05:30:03 +0000 (01:30 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 7 May 2015 14:03:53 +0000 (10:03 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

contrib/nitiwiki/src/nitiwiki.nit

index 200f971..803da02 100644 (file)
@@ -157,7 +157,11 @@ if opt_rsync.value then
 end
 
 # --status
-if opt_status.value or args.is_empty then
+if opt_status.value or
+       (not opt_clean.value and
+        not opt_fetch.value and
+        not opt_render.value and
+        not opt_rsync.value) then
        wiki.parse
        wiki.status
 end