vcomplete: sync all flags from pref.v to auto_complete_flags (#23189)

This commit is contained in:
larpon 2024-12-17 13:43:35 +01:00 committed by GitHub
parent 9a6e335601
commit 87e017e618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,15 +141,42 @@ const auto_complete_commands = [
// * Long flags, e.g.: "--version", should be entered: '--version'
// * Single-dash flags, e.g.: "-version", should be entered: '-version'
const auto_complete_flags = [
'-wasm-validate',
'-wasm-stack-top',
'-apk',
'-arch',
'-assert',
'-show-timings',
'-show-asserts',
'-check-syntax',
'-check',
'-?',
'-h',
'-help',
'--help',
'-q',
'-v',
'-V',
'--version',
'-version',
'-progress',
'-Wimpure-v',
'-Wfatal-errors',
'-silent',
'-skip-running',
'-cstrict',
'-nofloat',
'-fast-math',
'-e',
'-subsystem',
'-gc',
'-g',
'-cg',
'-debug-tcc',
'-sourcemap',
'-warn-about-allocs',
'-sourcemap-src-included',
'-sourcemap-inline',
'-repl',
'-live',
'-sharedlive',
@ -157,49 +184,100 @@ const auto_complete_flags = [
'--enable-globals',
'-enable-globals',
'-autofree',
'-print_autofree_vars',
'-print_autofree_vars_in_fn',
'-trace-calls',
'-trace-fns',
'-manualfree',
'-skip-unused',
'-no-skip-unused',
'-compress',
'-freestanding',
'-no-retry-compilation',
'-musl',
'-glibc',
'-no-bounds-checking',
'-no-builtin',
'-no-parallel',
'-no-preludes',
'-no-relaxed-gcc14',
'-prof',
'-profile',
'-cov',
'-coverage',
'-profile-fns',
'-profile-no-inline',
'-prod',
'-sanitize',
'-simulator',
'-stats',
'-obf',
'-obfuscate',
'-hide-auto-str',
'-translated',
'-translated-go',
'-m32',
'-m64',
'-color',
'-nocolor',
'-showcc',
'-show-c-output',
'-show-callgraph',
'-show-depgraph',
'-run-only',
'-exclude',
'-test-runner',
'-dump-c-flags',
'-dump-modules',
'-dump-files',
'-dump-defines',
'-experimental',
'-usecache',
'-use-os-system-to-run',
'-macosx-version-min',
'-nocache',
'-prealloc',
'-parallel',
'-no-parallel',
'-parallel-cc',
'-native',
'-interpret',
'-W',
'-keepc',
'-w',
'-N',
'-n',
'-no-rsp',
'-no-std',
'-keepc',
'-watch',
'-print-v-files',
'-error-limit',
'-message-limit',
'-print-watched-files',
'-http',
'-cross',
'-os',
'-printfn',
'-cflags',
'-define',
'-ldflags',
'-d',
'-define',
'-message-limit',
'-thread-stack-size',
'-cc',
'-c++',
'-checker-match-exhaustive-cutoff-limit',
'-o',
'-output',
'-is_o',
'-b',
'-backend',
'-es5',
'-path',
'-bare-builtin-dir',
'-custom-prelude',
'-name',
'-bundle',
'-V',
'-version',
'--version',
'-raw-vsh-tmp-prefix',
'-cmain',
'-line-info',
'-check-unused-fn-args',
'-check-return',
'-use-coroutines',
]
const auto_complete_flags_cover = [
'--help',