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
if opt_set_dummy_tool.value then
return "DUMMY_TOOL"
end
- return sys.program_name
+ return sys.program_name.basename("")
end
# The identified root directory of the Nit project
addn " return 0"
addn " fi"
end
- addn " _filedir"
- addn "\}"
- addn "complete -F _{name} {name}"
+ addn "\} &&"
+ addn "complete -o default -F _{name} {name}"
end
end