From c65d65a3f54ac819577eca08241486a0f3a7e63e Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 4 Mar 2021 13:38:05 +0100 Subject: [PATCH] v: use dash instead of lowerdash for -print-v-files (#9111) --- cmd/tools/vcomplete.v | 2 +- cmd/v/help/build.txt | 6 +++--- vlib/v/pref/pref.v | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/tools/vcomplete.v b/cmd/tools/vcomplete.v index bc027c12f7..6253e132d9 100644 --- a/cmd/tools/vcomplete.v +++ b/cmd/tools/vcomplete.v @@ -129,7 +129,7 @@ const ( '-W', '-keepc', '-w', - '-print_v_files', + '-print-v-files', '-error-limit', '-os', '-printfn', diff --git a/cmd/v/help/build.txt b/cmd/v/help/build.txt index e5df2f8752..d7ed0486a1 100644 --- a/cmd/v/help/build.txt +++ b/cmd/v/help/build.txt @@ -103,13 +103,13 @@ NB: the build flags are shared with the run command too: -v Enable verbosity in the V compiler while compiling - -print_v_files + -print-v-files Just print the list of all parsed .v files, then stop processing further. This is useful for running external processing tools: - ./v -print_v_files cmd/v | etags -L - + ./v -print-v-files cmd/v | etags -L - ... will generate a TAGS file, that emacs can then use to jump to the definition of functions used by v itself. For vim: - ./v -print_v_files cmd/v | ctags -L - + ./v -print-v-files cmd/v | ctags -L - ... will generate a simillar tags file, that vi compatible editors can use. NB: an useful, although not entirely accurate regexp based Universal Ctags options file for V is located in `.ctags.d/v.ctags` . If you use https://ctags.io/ , it will be used diff --git a/vlib/v/pref/pref.v b/vlib/v/pref/pref.v index ec5d628768..774a40d485 100644 --- a/vlib/v/pref/pref.v +++ b/vlib/v/pref/pref.v @@ -329,7 +329,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences '-w' { res.skip_warnings = true } - '-print_v_files' { + '-print-v-files' { res.print_v_files = true } '-error-limit' {