Updating the description on the info command
diff --git a/glide.go b/glide.go index 4c14328..0ba7f05 100644 --- a/glide.go +++ b/glide.go
@@ -597,32 +597,38 @@ }, { Name: "info", - Usage: "Info prints some information about this project based on glide.yaml", + Usage: "Info prints information about this project", Flags: []cli.Flag{ cli.StringFlag{ - Name: "format, f", - Usage: `Format of the information wanted. Variables: - %n - name - %d - description - %h - homepage - %l - license - - Examples: - Given the project with the following glide.yaml: - package: foo - homepage: https://foo.io - license: MIT - description: Some foo description - - Then: - glide info -f %n - prints 'foo' - glide info -f "License: %l" - prints 'License: 1.0' - glide info -f "%n - %d - %h - %l" - prints 'foo - Some foo description - https://foo.io - MIT'`, + Name: "format, f", + Usage: `Format of the information wanted (required).`, }, }, + Description: `A format containing the text with replacement variables + has to be passed in. Those variables are: + + %n - name + %d - description + %h - homepage + %l - license + + For example, given a project with the following glide.yaml: + + package: foo + homepage: https://example.com + license: MIT + description: Some example description + + Then running the following commands: + + glide info -f %n + prints 'foo' + + glide info -f "License: %l" + prints 'License: MIT' + + glide info -f "%n - %d - %h - %l" + prints 'foo - Some example description - https://example.com - MIT'`, Action: func(c *cli.Context) { if c.IsSet("format") { action.Info(c.String("format"))