![]() Due to some very old mistakes too many of Delve's flags are declared as persistent on cobra's root command. For example the headless flag is a global flag but does not apply to connect, dap or trace; the backend flag does not apply to replay, core and dap; etc. Almost all global flags should have been declared as local flags on individual subcommands. Unfortunately we can not change this without breaking backwards compatibility, for example: dlv --headless debug would not parse if headless was a flag of debug instead of a global flag. Instead we alter usage function and the markdown generation script to strategically hide the flags that don't apply. Fixes #2361 |
||
---|---|---|
.. | ||
gen-backend_test_health.go | ||
gen-cli-docs.go | ||
gen-faq-toc.go | ||
gen-opcodes.go | ||
gen-starlark-bindings.go | ||
gen-travis.go | ||
gen-usage-docs.go | ||
gencert.sh | ||
latestver.py | ||
make.go | ||
rtype-out.txt | ||
rtype.go | ||
staticcheck-out.txt | ||
test_linux.sh | ||
test_mac.sh | ||
test_windows.ps1 | ||
testsign |