Skip to content

New subcommand does not have default type #133

@technetos

Description

@technetos

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions