Closed Adamkadaban closed 6 months ago
At a glance I would guess this is your problem:
We don't actually invoke your program with arguments, so you'll quit before generating completions. If moving argcomplete.autocomplete(parser)
above this doesn't fix your problem, please show the output of attempted tab completion with _ARC_DEBUG=1
.
Oh wow, that was a simple solution.
Thanks for the help! @evanunderscore
I haven't been able to get this working for https://github.com/Pennyw0rth/NetExec
This is what the default output is of running without arguments:
Syntax is
nxc <protocol> <subargs>
Diff File:
I did
eval "$(register-python-argcomplete nxc)"
andeval "$(register-python-argcomplete netexec)"
separately to see if it was an issue with naming.When I export
_ARC_DEBUG
, it seems to run the program twice but doesn't parse any of the options.I think this may be because of the subcategories for the tool (eg.
nxc smb
andnxc ssh
). Is there a way to set up custom parsing for this?Thanks