Comments (7)
I actually don't mind the description on another line :)
By the by, I've updated the library to the newest version of ZIO and would like to help get it ready for primetime. Let me know if there's anything I can help with :)
I just updated the branch with the changes from zio-cli / master, updated the git example too (to include subcommands help).
Let me know if it's ok :)
Thanks.
from zio-cli.
@kpritam I have tried to implement this in #91.
Could it be a valid solution?
from zio-cli.
@jgoday Nice to see your PR.
I see you are printing complete help i.e. help for nested options as well.
But if you look at git
cli, when you say git --help
, it does not print nested options. It only prints top level command names and their description.
To see individual help, one need to run for example, git pull --help
command.
from zio-cli.
@kpritam should be fixed now then.
It looks like this
from zio-cli.
@jgoday I have not tested it but your last screenshot is what I was looking for. 🎉
Maybe it is good to align command name and its description in single line.
from zio-cli.
@kpritam If we want to display the subcommand name and the description in one line,
we have to decompose the description helpDoc and get his span text to append it with the name.
It would look like the following image
from zio-cli.
I actually don't mind the description on another line :)
By the by, I've updated the library to the newest version of ZIO and would like to help get it ready for primetime. Let me know if there's anything I can help with :)
from zio-cli.
Related Issues (20)
- Create comprehensive, friendly documentation with examples HOT 10
- Integrate support for OAuth2 authentication & authorization HOT 5
- Add support for reading command-line options from file(s) HOT 28
- SBT plugin can't be found HOT 5
- Lint and Scala 3.2.2 test is broken
- Missing command error handling HOT 4
- --help does not show subcommand description if there are any other parameters present HOT 5
- -- does not prevent options interpretation HOT 4
- keyValueMap should not prevent further parameters HOT 4
- Can't use `-` as option value. HOT 5
- Confusing docs for `|` coombinator HOT 9
- Allow chaning type name HOT 2
- Don't show all aliases in the same usage line HOT 4
- Hide zio trace in args parsing error
- Remove Default: 'None' from optional options docs.
- v0.5 mislabeled as v0.6 in README/Github? HOT 1
- | conbinator calls toString on objects with default toString implementation HOT 5
- Test-kit for ZIO CLI HOT 5
- Contributor's Guide page not found
- Pass options down to subcommands HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zio-cli.