From f2769f19ea0988e59d6c6af0236838a0242fcd58 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Wed, 8 Jan 2020 08:24:31 +0100 Subject: [PATCH] Revert "Revert "implemented argcomplete"" This reverts commit db34c8fcb8ddcc3d5a3328ed7e4f1ca481aa297c. --- explorationtools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/explorationtools.py b/explorationtools.py index d8fbb86..6aa3456 100755 --- a/explorationtools.py +++ b/explorationtools.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 -import argparse +# PYTHON_ARGCOMPLETE_OK +import argcomplete, argparse import math import sys @@ -54,6 +55,7 @@ parser_find.add_argument("name", help="the commander in question") parser_find.add_argument("apikey", default="", nargs="?", help="the commander’s EDSM API key. Can be empty for public profiles.") +argcomplete.autocomplete(parser) args = parser.parse_args() # ===========================================================================