Merge pull request #22015 from taosdata/fix/sangshuduo/typos-in-examples
fix: refine csharp example
This commit is contained in:
commit
5688f2e63e
|
@ -36,7 +36,11 @@ dotnet build -c Release
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
Usage: mono taosdemo.exe [OPTION...]
|
Usage with mono:
|
||||||
|
$ mono taosdemo.exe [OPTION...]
|
||||||
|
|
||||||
|
Usage with dotnet:
|
||||||
|
Usage: .\bin\Release\net5.0\taosdemo.exe [OPTION...]
|
||||||
|
|
||||||
--help Show usage.
|
--help Show usage.
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ namespace TDengineDriver
|
||||||
{
|
{
|
||||||
if ("--help" == argv[i])
|
if ("--help" == argv[i])
|
||||||
{
|
{
|
||||||
Console.WriteLine("Usage: mono taosdemo.exe [OPTION...]");
|
Console.WriteLine("Usage: taosdemo.exe [OPTION...]");
|
||||||
Console.WriteLine("");
|
Console.WriteLine("");
|
||||||
HelpPrint("--help", "Show usage.");
|
HelpPrint("--help", "Show usage.");
|
||||||
Console.WriteLine("");
|
Console.WriteLine("");
|
||||||
|
@ -305,7 +305,7 @@ namespace TDengineDriver
|
||||||
this.conn = TDengine.Connect(this.host, this.user, this.password, db, this.port);
|
this.conn = TDengine.Connect(this.host, this.user, this.password, db, this.port);
|
||||||
if (this.conn == IntPtr.Zero)
|
if (this.conn == IntPtr.Zero)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Connect to TDengine failed");
|
Console.WriteLine("Connect to TDengine failed. Reason: {0}\n", TDengine.Error(0));
|
||||||
CleanAndExitProgram(1);
|
CleanAndExitProgram(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue