INNER CODE UNIT · Python
extra
torognes/vsearch · completion/scripts/check_option_drift.py:119
missing, extra = accepted - listed, listed - accepted
if missing or extra:
problems.append(command)
print(f' {command}')
for option in sorted(missing):
print(f' missing: {option}')
for option in sorted(extra):
print(f' extra: {option}')
if not problems:
print(' all match')
print()
if problems:
print(f'FAIL: {len(problems)} kind(s) of drift. Edit '
'completion/spec/vsearch.yaml, never completions/, then '
'regenerate with "make -C completion regenerate-completions".')
return 1
print('OK: the spec matches cli.cc')