From 58e5799ac2a0c28f9679c55223e543cab2ab0331 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 14 Nov 2024 09:28:11 +0200 Subject: [PATCH] v.help: cleanup the `v help installation` text --- vlib/v/help/help.v | 2 +- vlib/v/help/installation/installation.txt | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/vlib/v/help/help.v b/vlib/v/help/help.v index 3575c3f781003f..4e3868c23bf6d7 100644 --- a/vlib/v/help/help.v +++ b/vlib/v/help/help.v @@ -59,7 +59,7 @@ pub fn print_and_exit(topic string, opts ExitOptions) { println(os.read_file(topic_path) or { eprintln('error: failed reading topic file: ${err}') exit(fail_code) - }) + }.trim_space()) exit(opts.exit_code) } diff --git a/vlib/v/help/installation/installation.txt b/vlib/v/help/installation/installation.txt index 19d7169d78de91..5aaaccd595514a 100644 --- a/vlib/v/help/installation/installation.txt +++ b/vlib/v/help/installation/installation.txt @@ -1,9 +1,9 @@ -Installation Management Utilities: - - self Rebuild V with the passed options. - - symlink Add a symlink for the V compiler executable. - - up Update the V compiler to the latest version from https://github.com/vlang/v. - - version Print the version of V installed \ No newline at end of file +Installation management tools: + + v up Update the V installation to its latest version. + v self Rebuild the V executable. Try for example: `v -prod self`. + v version Print the version of the V executable. + v symlink Add a global symlink to the V executable. + +You can also `v download -RD URL` to download, and then run arbitrary +self contained `.v` or `.vsh` scripts/programs.