Revert "Revert "implemented argcomplete""
This reverts commit db34c8fcb8
.
This commit is contained in:
parent
db34c8fcb8
commit
f2769f19ea
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import argparse
|
# PYTHON_ARGCOMPLETE_OK
|
||||||
|
import argcomplete, argparse
|
||||||
import math
|
import math
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -54,6 +55,7 @@ parser_find.add_argument("name", help="the commander in question")
|
||||||
parser_find.add_argument("apikey", default="", nargs="?",
|
parser_find.add_argument("apikey", default="", nargs="?",
|
||||||
help="the commander’s EDSM API key. Can be empty for public profiles.")
|
help="the commander’s EDSM API key. Can be empty for public profiles.")
|
||||||
|
|
||||||
|
argcomplete.autocomplete(parser)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
# ===========================================================================
|
# ===========================================================================
|
||||||
|
|
Loading…
Reference in a new issue