Skip to content

Commit 135a976

Browse files
authored
Add Legal and Notices to --version (#314)
1 parent 9780801 commit 135a976

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/sqlcmd/sqlcmd.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ func (a SQLCmdArguments) authenticationMethod(hasPassword bool) string {
120120
func Execute(version string) {
121121
ctx := kong.Parse(&args, kong.NoDefaultHelp())
122122
if args.Version {
123-
ctx.Printf("%v", version)
123+
ctx.Printf("%v\n", version)
124+
fmt.Println(localizer.Sprintf("Legal docs and information: aka.ms/SqlcmdLegal"))
125+
fmt.Println(localizer.Sprintf("Third party notices: aka.ms/SqlcmdNotices"))
124126
os.Exit(0)
125127
}
126128
if args.Help {

0 commit comments

Comments
 (0)