Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the descriptions of the CLI options consistent #65

Merged
merged 1 commit into from
Mar 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions cmd/xc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ func flags() config {
flag.BoolVar(&cfg.version, "version", false, "show xc version")
flag.BoolVar(&cfg.version, "V", false, "show xc version")

flag.BoolVar(&cfg.help, "help", false, "shows xc usage")
flag.BoolVar(&cfg.help, "h", false, "shows xc usage")
flag.BoolVar(&cfg.help, "help", false, "show xc usage")
flag.BoolVar(&cfg.help, "h", false, "show xc usage")

flag.StringVar(&cfg.heading, "heading", "Tasks", "specify xc heading")
flag.StringVar(&cfg.heading, "H", "Tasks", "specify xc heading")
flag.StringVar(&cfg.heading, "heading", "Tasks", "specify the heading for xc tasks")
flag.StringVar(&cfg.heading, "H", "Tasks", "specify the heading for xc tasks")

flag.StringVar(&cfg.filename, "file", "", "specify markdown file that contains tasks")
flag.StringVar(&cfg.filename, "f", "", "specify markdown file that contains tasks")
flag.StringVar(&cfg.filename, "file", "", "specify a markdown file that contains tasks")
flag.StringVar(&cfg.filename, "f", "", "specify a markdown file that contains tasks")

flag.BoolVar(&cfg.short, "short", false, "list task names in a short format")
flag.BoolVar(&cfg.short, "s", false, "list task names in a short format")

flag.BoolVar(&cfg.display, "d", false, "print the markdown for a task rather than running it")
flag.BoolVar(&cfg.display, "display", false, "print the markdown for a task rather than running it")
flag.BoolVar(&cfg.display, "d", false, "print the markdown code of a task rather than running it")
flag.BoolVar(&cfg.display, "display", false, "print the markdown code of a task rather than running it")
flag.Parse()
return cfg
}
Expand Down