tool_context: just print the bash_completion, let the caller do what it want
authorJean Privat <jean@pryen.org>
Thu, 24 Jul 2014 15:08:33 +0000 (11:08 -0400)
committerJean Privat <jean@pryen.org>
Fri, 25 Jul 2014 14:22:33 +0000 (10:22 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/toolcontext.nit

index a477121..6aeda8d 100644 (file)
@@ -255,8 +255,7 @@ class ToolContext
                end
 
                if opt_bash_completion.value then
-                       print bash_completion.write_to_string
-                       bash_completion.write_to_file("{sys.program_name}.bash")
+                       bash_completion.write_to(sys.stdout)
                        exit 0
                end