Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New subcommand does not have default type #133

Open
technetos opened this issue Jun 24, 2018 · 0 comments
Open

New subcommand does not have default type #133

technetos opened this issue Jun 24, 2018 · 0 comments

Comments

@technetos
Copy link
Contributor

In the help menu for the new subcommand we specify that the default is a static library but the behavior of the application does not reflect this.

$ ./hatch new --help                                                                                                                                                                                                                                                                                                                                                                                                               master
running hatch...
hatch-new
Creates a new project. (default = static library)

USAGE:
    hatch new [OPTIONS] <name> --type <type>

FLAGS:
    -h, --help    Prints help information

OPTIONS:
    -i, --include <include>...    List URLs to git repositories
    -t, --type <type>             Determines the type of the project [values: BIN, STATIC, SHARED]
    -v, --version <version>       Set the project version

ARGS:
    <name>    Name of project
plant /usr/dataplus/Hatch/hatch/target/debug
$ ./hatch new foobar                                                                                                                                                                                                                                                                                                                                                                                                               master
running hatch...
error: The following required arguments were not provided:
    --type <type>

USAGE:
    hatch new [OPTIONS] <name> --type <type>

For more information try --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant