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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user