diff --git a/cmd/v/help/build-c.txt b/cmd/v/help/build-c.txt index 1063426271..b48e6e7b5f 100644 --- a/cmd/v/help/build-c.txt +++ b/cmd/v/help/build-c.txt @@ -23,7 +23,7 @@ These build flags are enabled on `build` and `run` as long as the backend is set -printfn Prints the content of the generated C function named fn_name. You can repeat that many times. - This is useful when you just want to quickly tweak the generated C code, + This is useful when you just want to quickly tweak the generated C code, without opening the generated .c file in an text editor. -cg @@ -58,11 +58,11 @@ These build flags are enabled on `build` and `run` as long as the backend is set -shared Tell V to compile a shared object instead of an executable. The resulting file extension will be `.dll` on Windows and `.so` on Unix systems - + -no-prelude - Prevents V from generating a prelude in generated .c files, useful for freestanding targets + Prevents V from generating a prelude in generated .c files, useful for freestanding targets where eg. you replace C standard library with your own, or some definitions/headers break something. -custom-prelude - Useful for similar use-case as above option, except it replaces V-generated prelude with + Useful for similar use-case as above option, except it replaces V-generated prelude with your custom one loaded from specified . diff --git a/cmd/v/help/build.txt b/cmd/v/help/build.txt index d3e0f22a4a..fd0d01da16 100644 --- a/cmd/v/help/build.txt +++ b/cmd/v/help/build.txt @@ -29,8 +29,6 @@ The build flags are shared by the build and run commands: * `c` (default) - V outputs C source code which is passed to a C compiler to be compiled. * `js` - V outputs JS source code which can be passed to NodeJS to be ran. * `x64` - V outputs Linux 64-bit executable directly (highly experimental!). - * `v2`/`experimental` - Invokes the experimental AST-powered V compiler that will replace the - current backends when finished -d [=], -define [=] Define the provided flag. @@ -112,14 +110,14 @@ The build flags are shared by the build and run commands: -check-syntax Only scan and parse the files, but then stop. Useful for very quick syntax checks. - + -show-timings Print a summary about how long each compiler stage took, for example: PARSE: 152ms CHECK: 62ms C GEN: 103ms C tcc: 95ms - + For C-specific build flags, use `v help build-c`. See also: diff --git a/cmd/v/help/doc.txt b/cmd/v/help/doc.txt index 21369aaaec..8f4468133d 100644 --- a/cmd/v/help/doc.txt +++ b/cmd/v/help/doc.txt @@ -1,4 +1,4 @@ -Usage: +Usage: v doc [flags] [module_name / folder / V file] Examples: @@ -6,8 +6,8 @@ Examples: v doc -o math.html math v doc -m -f html vlib/ -Generates the documentation of a given directory, module, or V source file -and prints or saves them to its desired format. It can generate HTML, JSON, +Generates the documentation of a given directory, module, or V source file +and prints or saves them to its desired format. It can generate HTML, JSON, or Markdown format. Options: @@ -26,4 +26,4 @@ For HTML mode: -s Serve HTML-generated docs via HTTP. For plain text mode: - -l Show the locations of the generated signatures. \ No newline at end of file + -l Show the locations of the generated signatures. diff --git a/cmd/v/help/fmt.txt b/cmd/v/help/fmt.txt index 1efbce0476..b84ab37bb4 100644 --- a/cmd/v/help/fmt.txt +++ b/cmd/v/help/fmt.txt @@ -29,4 +29,3 @@ Environment Variables: VDIFF_OPTIONS A set of command-line options to be sent immediately after the `diff` command. e.g. VDIFF_OPTIONS="-W 80 -y" v fmt -diff path/to/file.v /tmp/v/vfmt_file.v - diff --git a/cmd/v/help/test.txt b/cmd/v/help/test.txt index 49ec5c398e..5af23f2583 100644 --- a/cmd/v/help/test.txt +++ b/cmd/v/help/test.txt @@ -22,5 +22,5 @@ framework. You can use `assert condition` inside each test_ function. If the asserted condition fails, then v will record that and produce a more detailed error message about where the failure was. -After all test_ functions are called, if you passed -stats, v will +After all test_ functions are called, if you passed -stats, v will produce a report about how many tests passed, and how many failed.