gendoc

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2018 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Command gendoc generates godoc comments describing the usage of tools based on the cmdline package.

Usage:

go run gendoc.go [flags] <pkg> [args]

<pkg> is the package path for the tool.

[args] are the arguments to pass to the tool to produce usage output. If no args are given, runs "<tool> help ..."

The reason this command is located under a testdata directory is to enforce its idiomatic use via "go run".

The gendoc command itself is not based on the cmdline library to avoid non-trivial bootstrapping.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL