tools: support `v missdoc .` instead of `v run cmd/tools/missdoc.v .`

Delyan Angelov 2022-04-30 16:09:11 +03:00 committed by Jef Roosens
parent 9e502d7bf2
commit b90c59d90c
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 19 additions and 2 deletions

View File

@ -5,8 +5,8 @@ import os
import flag import flag
const ( const (
tool_name = os.file_name(os.executable()) tool_name = 'v missdoc'
tool_version = '0.0.3' tool_version = '0.0.4'
tool_description = 'Prints all V functions in .v files under PATH/, that do not yet have documentation comments.' tool_description = 'Prints all V functions in .v files under PATH/, that do not yet have documentation comments.'
work_dir_prefix = normalise_path(os.real_path(os.wd_at_startup) + '/') work_dir_prefix = normalise_path(os.real_path(os.wd_at_startup) + '/')
) )

View File

@ -0,0 +1,16 @@
v missdoc 0.0.4
-----------------------------------------------
Usage: v missdoc [options] PATH [PATH]...
Description: Prints all V functions in .v files under PATH/, that do not yet have documentation comments.
Options:
-h, --help Show this help text.
-t, --tags Also print function tags if any is found.
-d, --deprecated Include deprecated functions in output.
-p, --private Include private functions in output.
--js Include JavaScript functions in output.
-n, --no-line-numbers Exclude line numbers in output.
-e, --exclude <multiple strings>
-r, --relative-paths Use relative paths in output.

View File

@ -28,6 +28,7 @@ const (
'doctor', 'doctor',
'fmt', 'fmt',
'gret', 'gret',
'missdoc',
'repl', 'repl',
'self', 'self',
'setup-freetype', 'setup-freetype',