Commit a9e10b6b authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

add support for bash-completion through optcomplete (http://furius.ca/optcomplete)


git-svn-id: https://svn.forked.de/graph-tool/trunk@65 d4600afd-f417-0410-95de-beed9576f240
parent 00d1e489
......@@ -145,6 +145,12 @@ layout.add_option("--for", action="callback", callback=push_option, type="string
layout.add_option("--history", action="callback", callback=push_option, type="string", metavar="INIT|CONDITION|STEP", help="simplified scripting (does not overwrite previous results)")
layout.add_option("--refresh-rate", type="string", metavar="TIME", default="1h", help="for/history files refresh rate")
try:
import optcomplete
optcomplete.autocomplete(parser)
except ImportError:
pass
(options, args) = parser.parse_args()
graph = GraphInterface()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment