mtibben / gogpm

Barebones dependency manager for Go.
BSD 3-Clause "New" or "Revised" License
7 stars 0 forks source link

Doesn't show usage for badly provided flags #6

Closed porty closed 10 years ago

porty commented 10 years ago

Attempted to get version using; gogpm --version (bad command) Output was:

flag provided but not defined: -adsljkfhaskld
Usage of gogpm:

Note no actual usage was printed.

Expected output (similar to gogpm alskjdlas):

gogpm is a tool for managing package dependency versions

gogpm leverages the power of the go get command and the underlying version
control systems used by it to set your Go dependencies to desired versions,
thus allowing easily reproducible builds in your Go projects.

A Godeps file in the root of your Go application is expected containing
the import paths of your packages and a specific tag or commit hash
from its version control system, an example Godeps file looks like this:

    $ cat Godeps
    # This is a comment
    github.com/nu7hatch/gotrail         v0.0.2
    github.com/replicon/fast-archiver   v1.02   #This is another comment!
    github.com/nu7hatch/gotrail         2eb79d1f03ab24bacbc32b15b75769880629a865

Usage:

    $ gogpm bootstrap [packages]    # Downloads all top-level packages required by the listed
                                    # import paths and generates a Godeps file with their
                                    # latest tags or revisions.
                                    # For more about specifying packages, see 'go help packages'.

    $ gogpm install                 # Parses the Godeps file, installs dependencies and sets
                                    # them to the appropriate version.

    $ gogpm version                 # Outputs version information

    $ gogpm help                    # Prints this message
mtibben commented 10 years ago

Fixed in https://github.com/mtibben/gogpm/commit/1a7f5b6d88857fd3a910b0728173459ce9125b85