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

Add product name and description to output #452

Merged
2 changes: 2 additions & 0 deletions cmd/sqlcmd/sqlcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ func Execute(version string) {
setVars(vars, &args)

if args.Version {
fmt.Println(localizer.Sprintf("sqlcmd: Install/Create/Query SQL Server, Azure SQL, and Tools"))
stuartpa marked this conversation as resolved.
Show resolved Hide resolved
fmt.Printf("%v\n", version)
fmt.Println(localizer.Sprintf("Legal docs and information: aka.ms/SqlcmdLegal"))
fmt.Println(localizer.Sprintf("Third party notices: aka.ms/SqlcmdNotices"))
Expand All @@ -247,6 +248,7 @@ func Execute(version string) {
setFlags(rootCmd, &args)
rootCmd.SetHelpFunc(func(cmd *cobra.Command, argss []string) {
fmt.Println(cmd.Long)
fmt.Println(localizer.Sprintf("sqlcmd: Install/Create/Query SQL Server, Azure SQL, and Tools"))
fmt.Println(localizer.Sprintf("Version %v\n", version))
cmd.Flags().SetInterspersed(false)
fmt.Println(localizer.Sprintf("Flags:"))
Expand Down
Loading