From 732c45819784d0847dd0042f1d98d66724255990 Mon Sep 17 00:00:00 2001 From: Jon Lamb Date: Sat, 21 Sep 2024 12:52:51 -0700 Subject: [PATCH] Add clap env for elf file and remote --- src/bin/proxy_collector.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/bin/proxy_collector.rs b/src/bin/proxy_collector.rs index 1b79555..5f996f0 100644 --- a/src/bin/proxy_collector.rs +++ b/src/bin/proxy_collector.rs @@ -46,7 +46,12 @@ pub struct Opts { pub control_block_address: Option, /// 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, /// Set a breakpoint on the address of the given symbol used to signal @@ -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, }