Skip to content

Commit

Permalink
Simplify cli help output
Browse files Browse the repository at this point in the history
  • Loading branch information
carhartl committed Oct 19, 2024
1 parent 0fb32f4 commit 19c334a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion cmd/git-unsaved/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,23 @@ func (m model) View() string {
}

func main() {
cli.AppHelpTemplate = `{{.Name}} - {{.Usage}}
Usage:
git-unsaved [path] [flags]
Examples:
git-unsaved
git-unsaved /path/to/directory
git unsaved
Flags:
-h, --help
-v, --version`

app := &cli.App{
Name: "git-unsaved",
Usage: "Finding all your dirty Git repositories",
Usage: "Find all your dirty Git repositories",
Version: "v0.0.1",
Action: func(*cli.Context) error {
p := tea.NewProgram(initialModel())
Expand Down

0 comments on commit 19c334a

Please sign in to comment.