Skip to content

Commit

Permalink
tools: support v missdoc . instead of v run cmd/tools/missdoc.v .
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Apr 30, 2022
1 parent c0b3740 commit 63d413f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tools/missdoc.v → cmd/tools/vmissdoc.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import os
import flag

const (
tool_name = os.file_name(os.executable())
tool_version = '0.0.3'
tool_name = 'v missdoc'
tool_version = '0.0.4'
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) + '/')
)
Expand Down
16 changes: 16 additions & 0 deletions cmd/v/help/missdoc.txt
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions cmd/v/v.v
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const (
'doctor',
'fmt',
'gret',
'missdoc',
'repl',
'self',
'setup-freetype',
Expand Down

0 comments on commit 63d413f

Please sign in to comment.