Skip to content

Commit b0ccbba

Browse files
committed
completions: no not complete options without entering - first
additionally, this commit makes activate-global-python-argcomplete work
1 parent 0b1a4e4 commit b0ccbba

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

nxc/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def gen_cli_args():
124124
except Exception as e:
125125
nxc_logger.exception(f"Error loading proto_args from proto_args.py file in protocol folder: {protocol} - {e}")
126126

127-
argcomplete.autocomplete(parser)
127+
argcomplete.autocomplete(parser, always_complete_options=False)
128128
args = parser.parse_args()
129129

130130
if len(sys.argv) == 1:

nxc/netexec.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# PYTHON_ARGCOMPLETE_OK
12
import sys
23
from nxc.helpers.logger import highlight
34
from nxc.helpers.misc import identify_target_file

0 commit comments

Comments
 (0)