v: use dash instead of lowerdash for -print-v-files (#9111)
parent
eb1e1afbc1
commit
c65d65a3f5
|
@ -129,7 +129,7 @@ const (
|
||||||
'-W',
|
'-W',
|
||||||
'-keepc',
|
'-keepc',
|
||||||
'-w',
|
'-w',
|
||||||
'-print_v_files',
|
'-print-v-files',
|
||||||
'-error-limit',
|
'-error-limit',
|
||||||
'-os',
|
'-os',
|
||||||
'-printfn',
|
'-printfn',
|
||||||
|
|
|
@ -103,13 +103,13 @@ NB: the build flags are shared with the run command too:
|
||||||
-v
|
-v
|
||||||
Enable verbosity in the V compiler while compiling
|
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.
|
Just print the list of all parsed .v files, then stop processing further.
|
||||||
This is useful for running external processing tools:
|
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
|
... will generate a TAGS file, that emacs can then use to jump
|
||||||
to the definition of functions used by v itself. For vim:
|
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.
|
... 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
|
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
|
for V is located in `.ctags.d/v.ctags` . If you use https://ctags.io/ , it will be used
|
||||||
|
|
|
@ -329,7 +329,7 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
|
||||||
'-w' {
|
'-w' {
|
||||||
res.skip_warnings = true
|
res.skip_warnings = true
|
||||||
}
|
}
|
||||||
'-print_v_files' {
|
'-print-v-files' {
|
||||||
res.print_v_files = true
|
res.print_v_files = true
|
||||||
}
|
}
|
||||||
'-error-limit' {
|
'-error-limit' {
|
||||||
|
|
Loading…
Reference in New Issue