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)
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)