Comments (3)
Motivation: we have a very long description for one of our commands. It doesn't wrap cleanly, so I wanted to insert newlines at the 80 char mark.
Related: flutter/flutter#1225
(of course, if there was a supported way that args auto-wrapped the command's description (because the runner knows how to pad), that would be even better.)
from args.
Thanks!
from args.
Since making this change, I've realized that pub actually relied on the old behavior to display only a brief summary of a command in the initial pub help
documentation, while displaying a longer description in the pub help command
documentation.
I'm going to revert this back to the old behavior by default, but I'll also add a way to override it. I'll add a Command.summary
getter that's used in the parent command's usage string, which defaults to the first line of Command.description
but can be overridden.
from args.
Related Issues (20)
- Not-found command should hint about similar ones HOT 4
- Examples for CommandRunner aren't correct HOT 8
- Suggestion: mandatory arguments HOT 2
- Non-zero exit code after printing command usage HOT 2
- question mark doesn't work? HOT 3
- expose interface for completion HOT 2
- Overhaul usage errors to not use exceptions
- Examples for CommandRunner aren't correct on pub page HOT 3
- Statically typed argument parser (possibly with code generator)? HOT 3
- Add a CommandRunner example HOT 2
- Why is `CommandRunner._usageWithoutDescription` private?
- Promote Command.argResults to be non-nullable HOT 1
- Make allowed options case insensitive
- How to add default command?
- Provide the function to print strings in nice columns
- Standards used in docopt. HOT 2
- [Feature request] Show command alias in usage HOT 3
- Command CommandRunner Platform.executableArguments HOT 3
- use of 'mandatory' options breaks handling of the help flag
- Feature request: parse complete command string to List<String> args HOT 3
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 args.