Skip to content

Commit

Permalink
Fix CLI args for z_pub_shm (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets authored Jun 28, 2024
1 parent c96f6b0 commit 0c7faa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/examples/z_pub_shm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async fn main() -> Result<(), ZError> {
struct Args {
#[arg(short, long, default_value = "demo/example/zenoh-rs-pub")]
/// The key expression to publish onto.
path: KeyExpr<'static>,
key: KeyExpr<'static>,
#[arg(short, long, default_value = "Pub from SHM Rust!")]
/// The payload of to publish.
payload: String,
Expand All @@ -105,5 +105,5 @@ struct Args {

fn parse_args() -> (Config, KeyExpr<'static>, String) {
let args = Args::parse();
(args.common.into(), args.path, args.payload)
(args.common.into(), args.key, args.payload)
}

0 comments on commit 0c7faa9

Please sign in to comment.