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
325 stars 57 forks source link

"sqlcmd -?" has become harder to read #345

Closed JyotikaGargg closed 1 year ago

JyotikaGargg commented 1 year ago

in general the "sqlcmd -?" has become harder to read, because it is no longer indented, it used to be this:

  -i, --input-file=INPUT-FILE,...                                    Identifies one or more files that contain                                    batches of SQL statements. If one or more                                    files do not exist, sqlcmd will exit.                                    Mutually exclusive with -Q/-q.   -o, --output-file=STRING         Identifies the file that receives output from                                    sqlcmd.   -q, --initial-query=STRING       Executes a query when sqlcmd starts, but does                                    not exit sqlcmd when the query has finished                                    running. Multiple-semicolon-delimited queries                                    can be executed.

 

and now it is:

  -q, --initial-query string            Executes a query when sqlcmd starts, but does not exit sqlcmd when the query has finished running. Multiple-semicolon-delimited queries can be executed.   -i, --input-file strings              Identifies one or more files that contain batches of SQL statements. If one or more files do not exist, sqlcmd will exit. Mutually exclusive with -Q/-q.   -l, --login-timeOut int               Specifies the number of seconds before a sqlcmd login to the go-mssqldb driver times out when you try to connect to a server. This option sets the sqlcmd scripting variable SQLCMDLOGINTIMEOUT. The default value is 30. 0 means infinite. (default -1)