microsoft / go-sqlcmd

The new sqlcmd, CLI for SQL Server and Azure SQL (winget install sqlcmd / sqlcmd create mssql / sqlcmd open ads)
https://learn.microsoft.com/sql/tools/sqlcmd/go-sqlcmd-utility
MIT License
343 stars 60 forks source link

Pick a shorthand switch for logging (-v is already taken for variables) #211

Open stuartpa opened 1 year ago

stuartpa commented 1 year ago

A typical support scenario is going to be, can you run that command again with full logging, e.g.

sqlcmd create mssql -v 4

Which is currently short for

sqlcmd create mssql --verbosity 4

But:

-v is taken, -l is taken.

What's the POSIX CLI norm for getting full logging? (is --verbosity even a good flag name for this)

stuartpa commented 7 months ago

I've noticed most golang based COBRA clis using --debug (for what we currently use --verbosity 4 for),