Skip to content

Commit

Permalink
Add clap env for elf file and remote
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Sep 21, 2024
1 parent a6ffa05 commit 732c458
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/bin/proxy_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ pub struct Opts {
pub control_block_address: Option<u32>,

/// Extract the location in memory of the RTT control block debug symbol from an ELF file.
#[clap(long, name = "elf-file", help_heading = "STREAMING PORT CONFIGURATION")]
#[clap(
long,
env = "MODALITY_TRACE_RECORDER_ELF_FILE",
name = "elf-file",
help_heading = "STREAMING PORT CONFIGURATION"
)]
pub elf_file: Option<PathBuf>,

/// Set a breakpoint on the address of the given symbol used to signal
Expand Down Expand Up @@ -229,7 +234,12 @@ pub struct Opts {
/// The remote TCP proxy server URL or address:port to connect to.
///
/// The default is `127.0.0.1:8888`.
#[clap(long, name = "remote", help_heading = "STREAMING PORT CONFIGURATION")]
#[clap(
long,
name = "remote",
env = "MODALITY_TRACE_RECORDER_REMOTE",
help_heading = "STREAMING PORT CONFIGURATION"
)]
pub remote: Option<String>,
}

Expand Down

0 comments on commit 732c458

Please sign in to comment.