Skip to content

Commit

Permalink
cmd/addchain: flag tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcloughlin committed Apr 26, 2021
1 parent 80391ed commit 9396c1b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/addchain/cite.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (*cite) Usage() string {
Output citation for addchain.
`
`
}

func (cmd *cite) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) (status subcommands.ExitStatus) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/addchain/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (*eval) Usage() string {
Evaluate an addition chain script.
`
`
}

func (cmd *eval) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) (status subcommands.ExitStatus) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/addchain/fmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (*format) Usage() string {
Format an addition chain script.
`
`
}

func (cmd *format) SetFlags(f *flag.FlagSet) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/addchain/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ func (*search) Usage() string {
Search for an addition chain for <expr>.
`
`
}

func (cmd *search) SetFlags(f *flag.FlagSet) {
f.IntVar(&cmd.concurrency, "p", runtime.NumCPU(), "number of algorithms to run in parallel")
f.IntVar(&cmd.concurrency, "p", runtime.NumCPU(), "run `N` algorithms in parallel")
f.BoolVar(&cmd.verbose, "v", false, "verbose output")
f.StringVar(&cmd.cpuprofile, "cpuprofile", "", "write cpu profile to `file`")
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/addchain/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ type version struct {
func (*version) Name() string { return "version" }
func (*version) Synopsis() string { return "print addchain version" }
func (*version) Usage() string {
return `Usage: version [<filename>]
return `Usage: version
Print the version of the addchain tool.
`
`
}

func (cmd *version) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{}) (status subcommands.ExitStatus) {
Expand Down

0 comments on commit 9396c1b

Please sign in to comment.