1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: remove cmd/tools/modules/vhelp/ & add print to v share (#17178)

This commit is contained in:
Christopher Fore
2023-02-01 04:18:23 -05:00
committed by GitHub
parent 02fc58d124
commit 2029d1830f
6 changed files with 12 additions and 54 deletions

View File

@@ -1,8 +1,6 @@
module help
// TODO: move this file outside internal, and merge it with cmd/tools/modules/vhelp/vhelp.v .
import os
import v.pref
const (
unknown_topic = '`v help`: unknown help topic provided. Use `v help` for usage information.'
@@ -10,7 +8,7 @@ const (
// print_and_exit Prints the help topic and exits
pub fn print_and_exit(topic string) {
vexe := pref.vexe_path()
vexe := @VEXE
vroot := os.dir(vexe)
topicdir := os.join_path(vroot, 'vlib', 'v', 'help')