Skip to content

Commit 1e42f65

Browse files
committed
Dev: main: Ignore crm flag option to get completion
1 parent 64f526e commit 1e42f65

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crmsh/main.py

+5
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,11 @@ def compgen():
282282
# point = int(args[0])
283283
line = args[1]
284284

285+
exclude_flag_options = ('-F', '-n', '-w', '-d', '--force', '--no', '--wait', '--debug')
286+
for opt in exclude_flag_options:
287+
if f' {opt} ' in line:
288+
line = line.replace(opt, '')
289+
285290
# remove [*]crm from commandline
286291
idx = line.find('crm')
287292
if idx >= 0:

0 commit comments

Comments
 (0)