completion: decouple completion related stuff from command

It also now uses the main parser itself that invokes the command rather than
creating a new parser object.
This commit is contained in:
Saugat Pachhai (सौगात)
2022-04-20 13:29:33 +05:45
committed by Saugat Pachhai
parent 5c1e7be909
commit cc8a0ce134
31 changed files with 105 additions and 103 deletions
+1
View File
@@ -32,6 +32,7 @@ def parse_args(argv=None):
parser = get_main_parser()
args = parser.parse_args(argv)
args.parser = parser
return args