Skip to content
This repository has been archived by the owner on Feb 27, 2018. It is now read-only.

Commit

Permalink
Merge pull request #358 from ahmetalpbalkan/usage-string-short
Browse files Browse the repository at this point in the history
Print only base binary name in usage string (win)
  • Loading branch information
gmlewis committed Mar 27, 2015
2 parents 63bf6b5 + 1a24269 commit c427ded
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ func config() (*flag.FlagSet, error) {
}

func usageShort() {
fmt.Fprintf(os.Stderr, "Usage: %s [<options>] {help|init|up|ssh|save|down|poweroff|reset|restart|config|status|info|ip|shellinit|delete|download|upgrade|version} [<args>]\n", os.Args[0])
binName := filepath.Base(os.Args[0])
fmt.Fprintf(os.Stderr, "Usage: %s [<options>] {help|init|up|ssh|save|down|poweroff|reset|restart|config|status|info|ip|shellinit|delete|download|upgrade|version} [<args>]\n", binName)
}

func usageLong(flags *flag.FlagSet) {
Expand Down

0 comments on commit c427ded

Please sign in to comment.