-
Notifications
You must be signed in to change notification settings - Fork 0
Display help when running antler-proj without arguments #20
Comments
@jolly-fellow what is this issue about? |
When we start
IMHO it is not enough for a user to understand what to do next because he don't know what is a subcommand, which subcommands are available and how to use --help. And I'd prefer to use command word instead of subcommand because subcommand implies the presence of some command.
|
I have added PR for displaying help when someone executes |
antler-proj is a program, an executable file, it is an entity from completely different field as command line arguments of CLI of the antler-proj program. |
Quick feedback on command vs subcommand: since the command is We (ENF) use CLI11 in other tools and I don't think we should deviate here if we haven't in leap or CDT. |
|
I think it's acceptable as is. But I would be on board for changing this a call missing a subcommand prints the simple help. |
It doesn't describe option which allows to declare a name of the app, lib or dep for manipulations.
And addition options needed to specific commands like options for declaration of a programming language, build options an so on.
Actually the CLI syntax has two layers of commands and --help option (as other options) is context specific, i.e. prints a help text dependent on the command and subcommand but it is not described anywhere.
IMHO this principle should be described in the help text which prints antler-proj after run without options.
root@c1742fb0fdb3:/app# antler-proj add --help
Add an app, dependency, library or test to your project.
Usage: antler-proj add [OPTIONS] [path] [SUBCOMMAND]
Positionals:
path TEXT This is the root path to create the project in.
Options:
-h,--help Print this help message and exit
-p TEXT This is the root path to create the project in.
Subcommands:
app Add a new app to your project.
lib Add a new library to your project.
dep Add a new dependency to the project.
root@c1742fb0fdb3:/app# antler-proj update --help
Update an app, dependency, library or test to your project.
Usage: antler-proj update [OPTIONS] [path] [SUBCOMMAND]
Positionals:
path TEXT This must be the path to the
project.yml
or the path containing it.Options:
-h,--help Print this help message and exit
-p TEXT This must be the path to the
project.yml
or the path containing it.Subcommands:
app Remove app from the project.
lib Remove lib from the project.
dep Remove a dependency from the project.
root@c1742fb0fdb3:/app# antler-proj remove --help
Add an app, dependency, library or test to your project.
Usage: antler-proj remove [OPTIONS] path [SUBCOMMAND]
Positionals:
path TEXT REQUIRED This must be the path to the
project.yml
or the path containing it.Options:
-h,--help Print this help message and exit
-p TEXT REQUIRED This must be the path to the
project.yml
or the path containing it.Subcommands:
app Remove app from the project.
lib Remove lib from the project.
dep Remove a dependency from the project.
The text was updated successfully, but these errors were encountered: