Added README for cli tool

This commit is contained in:
2025-01-21 20:00:28 +01:00
parent 39863880d5
commit 1cf49f74ea
4 changed files with 105 additions and 2 deletions

View File

@@ -460,7 +460,7 @@ namespace AMWD.Protocols.Modbus.CliClient
private static void PrintHelp()
{
Console.WriteLine("Usage: amwd-modbus [OPTIONS] <serial-port>|<tcp-host>");
Console.WriteLine($"Usage: {typeof(Program).Assembly.GetName().Name} [OPTIONS] <serial-port>|<tcp-host>");
Console.WriteLine();
Console.WriteLine("Serial Port:");
Console.WriteLine(" COM1, COM2, ... on Windows");
@@ -522,7 +522,7 @@ namespace AMWD.Protocols.Modbus.CliClient
Console.WriteLine();
Console.WriteLine("Serial Options:");
Console.WriteLine(" -b, --baud #");
Console.WriteLine(" The baud rate (e.g. 9600, 19200, 38400, 115200). Default: 19200");
Console.WriteLine(" The baud rate (e.g. 9600). Default: 19200");
Console.WriteLine();
Console.WriteLine(" -d, --databits #");
Console.WriteLine(" The number of data bits (7/8 for ASCII, otherwise 8). Default: 8");