Comments (4)
Yeah, I'm confused by this. When I copy the example from README.md and type 'go run main.go help' I get a blank screen. This seems at odds with the documentation?
from cobra.
Same here, I might just send a PR for this :)
from cobra.
Please do send a PR.
Best,
Steve
--
Steve Francia
http://stevefrancia.com
http://spf13.com
http://twitter.com/spf13
From: Brian Scott Brian Scott
Reply: spf13/cobra [email protected]
Date: January 26, 2014 at 10:29:18 PM
To: spf13/cobra [email protected]
Subject: Re: [cobra] help without arguments should print usage by default (#3)
Same here, I might just send a PR for this :)
—
Reply to this email directly or view it on GitHub.
from cobra.
After this change the root command's long description is not printed. Was that the intended effect?
from cobra.
Related Issues (20)
- Always got default value from flag HOT 1
- Completion should not complete the --help/-h and --version/-v flags if DisableFlagParsing==true
- Prevent default help command and flag
- Investigate G602 bypass fix
- Cobra SetUsageTemplate() overrides the help message HOT 1
- ActiveHelp on bash does not handle command-line prefixes adequately
- Can there be support for "Parameter sets" if there isn't already? HOT 1
- command PreRun don't run when to use [ app install phase -f ],otherwie PreRun is running when to use [ app install -f ] HOT 2
- Nested Query To set value HOT 1
- Nested Query using set function HOT 2
- Add a `no-` version of a boolean HOT 8
- Child command context is not updated when global context changed HOT 2
- [Bug] SetArgs doesn't reset flag value HOT 9
- A research for generating PR checklists in Pull Request Template
- shorthand not working and throw panic while use name works HOT 2
- Plugins: add map to store arbitrary data in `Command` HOT 1
- [doc] Add support for taking in `text/template`s for generating docs HOT 1
- docs: Content of user_guide.md not published at cobra.dev
- Add EnableFlagSorting similar to EnableCommandSorting
- non-boolean flags found on sub commands regardless of order 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 cobra.