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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 54 deletions

View file

@ -13,7 +13,7 @@ import v.fmt
import v.util
import v.util.diff
import v.parser
import vhelp
import v.help
struct FormatOptions {
is_l bool
@ -88,7 +88,7 @@ fn main() {
exit(0)
}
if files.len == 0 || '-help' in args || '--help' in args {
vhelp.show_topic('fmt')
help.print_and_exit('fmt')
exit(0)
}
mut cli_args_no_files := []string{}