Closed rwestMSFT closed 8 months ago
thx for opening a PR!
I don't think this particular output is relevant for cmd/sqlcmd
, since legacy mode only supports queries. None of the flags -? prints are about install or create.
ODBC is printing the product name and we don't really have a good product name other than "sqlcmd" yet. @dlevy-msft it'd be good to talk to the marketing/branding folks to see what name we should use.
@shueybubbles This is less about relevancy, and more about adding the name of the product when checking which version is installed. As discussed in other conversations, sqlcmd "-?"
is a universal command that will run across OSes and versions of sqlcmd
, and I think it should include a product name (whatever that is) before the version number, in this and --version
info.
✌️👍
Add product name to
--version
and-?
output, to emulate the output of sqlcmd ODBC.Fixes https://github.com/microsoft/go-sqlcmd/issues/392.
The ODBC tool output looks like this:
Adding this PR would change the output from this (
-?
):To this:
And this (
--version
):To this: