Skip to content

Commit

Permalink
Simplify the usage help for samples, remove errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Jan 23, 2020
1 parent 7da593a commit 7f85629
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion samples/discovery-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Args {

pub fn usage() {
println!(r#"OPC UA Discovery client
Usage: discovery-client --config [config] --run-demo-slave
Usage:
-h, --help Show help
--url The url for the discovery server (default: {})"#, DEFAULT_DISCOVERY_URL);
}
Expand Down
2 changes: 1 addition & 1 deletion samples/modbus-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl Args {

pub fn usage() {
println!(r#"MODBUS server
Usage: modbus-server --config [config] --run-demo-slave
Usage:
-h, --help Show help
--config Configuration file (default: {})
--run-demo-slave Runs a demo slave to ensure the sample has something to connect to"#, DEFAULT_CONFIG);
Expand Down
2 changes: 1 addition & 1 deletion samples/mqtt-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Args {

pub fn usage() {
println!(r#"MQTT client
Usage: discovery-client --config [config] --run-demo-slave
Usage:
-h, --help Show help
--config file Sets the configuration file to read settings and endpoints from (default: {})
--endpoint-id id Sets the endpoint id from the config file to connect to
Expand Down
2 changes: 1 addition & 1 deletion samples/simple-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Args {

pub fn usage() {
println!(r#"Simple Client
Usage: simple-client --url [url]
Usage:
-h, --help Show help
--url [url] Url to connect to (default: {})"#, DEFAULT_URL);
}
Expand Down
2 changes: 1 addition & 1 deletion samples/web-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Args {

pub fn usage() {
println!(r#"Web Client
Usage: web-client --config [config] --run-demo-slave
Usage:
-h, --help Show help
--http-port The port number that this web server will run from (default: {})"#, DEFAULT_HTTP_PORT);
}
Expand Down

0 comments on commit 7f85629

Please sign in to comment.