MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / log_program_info

Function log_program_info

splashsurf/src/logging.rs:153–174  ·  view source on GitHub ↗

Prints program name, version etc. and command line arguments to log

()

Source from the content-addressed store, hash-verified

151
152/// Prints program name, version etc. and command line arguments to log
153pub(crate) fn log_program_info() {
154 info!(
155 "{} v{} ({})",
156 //env!("CARGO_BIN_NAME"),
157 std::env::args()
158 .next()
159 .unwrap_or_else(|| "splashsurf".to_string()),
160 env!("CARGO_PKG_VERSION"),
161 env!("CARGO_PKG_NAME")
162 );
163
164 let cmd_line: String = {
165 let mut cmd_line = String::new();
166 for arg in env::args() {
167 cmd_line.push_str(&arg);
168 cmd_line.push(' ');
169 }
170 cmd_line.pop();
171 cmd_line
172 };
173 info!("Called with command line: {}", cmd_line);
174}

Callers 1

run_splashsurf_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected