diff --git a/README.md b/README.md index 8898f79..df5938d 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,16 @@ Only parse hooks or shortcodes starting with the specified prefixes. #### `vendor/bin/wp-doc-gen . hooks.md --exclude vendor node_modules --prefix prefix_1 prefix_2` +--- + +#### `--verbose` or `-v` +More detailed error messages. + +--- + +#### `--version` or `-V` +Print the version number + ## Real life Examples ### Generated markdown files - https://github.com/Dudo1985/Yet-Another-Stars-Rating/blob/master/docs/yasr_hooks.md diff --git a/examples/hooks.md b/examples/hooks.md index 14a6b17..0aec12e 100644 --- a/examples/hooks.md +++ b/examples/hooks.md @@ -1,7 +1,7 @@ ### `do_action('yasr_add_settings_tab')` - Source: [examples//hooks.php, line 12](examples//hooks.php:12) + Source: [examples/hooks.php, line 12](examples/hooks.php:12) _Hook here to add new settings tab_ @@ -13,7 +13,7 @@ _This is the second line_ ___ ### `do_action('yasr_right_settings_panel_box')` - Source: [examples//hooks.php, line 19](examples//hooks.php:19) + Source: [examples/hooks.php, line 19](examples/hooks.php:19) _Hook here to add new settings tab_ @@ -23,7 +23,7 @@ _Hook here to add new settings tab_ ___ ### `apply_filters('yasr_vv_cookie')` - Source: [examples//hooks.php, line 24](examples//hooks.php:24) + Source: [examples/hooks.php, line 24](examples/hooks.php:24) _customize visitor_votes cookie name, no param given just the description_ diff --git a/src/WPDocGen.php b/src/WPDocGen.php index 642d2e5..6f5a9c9 100644 --- a/src/WPDocGen.php +++ b/src/WPDocGen.php @@ -275,7 +275,7 @@ function printVersion($argv): void { * @return bool * @author Dario Curvino <@dudo> * - * @since + * @since 2.0.0 */ function verboseOutput($argv): bool { if (in_array('--verbose', $argv) || in_array('-v', $argv)) {