# Displays the list of available queries.
fun help do
# TODO automatize that
print "\nCommands:\n"
for usage, doc in parser.commands_usage do
var l = usage.length / 8
print "\t{usage}{"\t" * (3 - l)}{doc}"
end
print "\n"
print "\t:h\t\t\tdisplay this help message"
print "\t:q\t\t\tquit interactive mode"
print ""
end
src/nitx.nit:80,2--92,4