This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
generated from eosnetworkfoundation/product
-
Notifications
You must be signed in to change notification settings - Fork 0
Correct command line parser #13
Comments
|
Additional comments based on current state of main:
See PR #54 for this. |
See also issue #51 |
Consensus: all parameters become flag only. We are no longer using positional parameters. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
UPD: Actually the first part is implemented. antler-proj work as it described here.
antler-proj <command> <path> [<args>]
for all commands.
Where a
<command>
is the first word after the program name, it has no dashes, path is a path to the project and args are arguments of the command, each argument name has leading dashes.It makes the interface logical, predictable and unified. Details see in the usecases.md and users_guide.md
UPD: I have described this problem more detailed and my view how to solve it here: #50 (review)
Positionals:
path TEXT This is the root path to create the project in.
Options:
-p TEXT This is the root path to create the project in.
command init had 3 duplicated parameters:
Positionals:
path TEXT REQUIRED This is the root path to create the project in.
project_name TEXT REQUIRED The name of the project.
version TEXT The version to store in the project file.
Options:
-p TEXT REQUIRED This is the root path to create the project in.
-n TEXT REQUIRED The name of the project.
-v TEXT The version to store in the project file.
The text was updated successfully, but these errors were encountered: