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