Skip to content

Commit

Permalink
Tweak reform-db help texts.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Apr 24, 2017
1 parent 1d401d5 commit ae01dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reform-db/cmd_init.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func init() {
fmt.Fprintf(os.Stderr, "\nInit flags:\n")
initFlags.PrintDefaults()
fmt.Fprintf(os.Stderr, `
It uses information_schema or similar RDMBS mechanism to inspect database
It uses information_schema or similar RDBMS mechanism to inspect database
structure. For each table, it generates a single file with single struct type
definition with fields, types, and tags. Generated code then should be checked
and edited manually.
Expand Down
4 changes: 2 additions & 2 deletions reform-db/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (

func init() {
flag.Usage = func() {
fmt.Fprintf(os.Stderr, "reform-db. %s.\n\n", reform.Version)
fmt.Fprintf(os.Stderr, "reform-db - a better ORM tool. %s.\n\n", reform.Version)
fmt.Fprintf(os.Stderr, "Usage:\n")
fmt.Fprintf(os.Stderr, " %s [global flags] [command] [command flags] [arguments]\n\n", os.Args[0])
fmt.Fprintf(os.Stderr, "Global flags:\n")
Expand All @@ -37,7 +37,7 @@ func init() {
fmt.Fprintf(os.Stderr, " exec - executes SQL queries from given files or stdin\n")
fmt.Fprintf(os.Stderr, " query - executes SQL queries from given files or stdin, and returns results\n")
fmt.Fprintf(os.Stderr, " init - generates Go model files for existing database schema\n\n")
fmt.Fprintf(os.Stderr, "Registered database drivers: %s.", strings.Join(sql.Drivers(), ", "))
fmt.Fprintf(os.Stderr, "Registered database drivers: %s.\n", strings.Join(sql.Drivers(), ", "))
}
}

Expand Down

0 comments on commit ae01dfd

Please sign in to comment.