Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fork
G
github
writeas
writeas-cli
Commits
80d0f765
Commit
80d0f765
authored
9 years ago
by
Matt Baer
Browse files
Options
Download
Email Patches
Plain Diff
Improve subcommand help template
Shows 'writeas' instead of generic 'command'
parent
995d73db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
writeas/cli.go
writeas/cli.go
+14
-0
No files found.
writeas/cli.go
View file @
80d0f765
...
@@ -171,6 +171,20 @@ func main() {
...
@@ -171,6 +171,20 @@ func main() {
},
},
}
}
cli
.
CommandHelpTemplate
=
`NAME:
{{.Name}} - {{.Usage}}
USAGE:
writeas {{.Name}}{{if .Flags}} [command options]{{end}} [arguments...]{{if .Description}}
DESCRIPTION:
{{.Description}}{{end}}{{if .Flags}}
OPTIONS:
{{range .Flags}}{{.}}
{{end}}{{ end }}
`
app
.
Run
(
os
.
Args
)
app
.
Run
(
os
.
Args
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment