chore: support passing args explicitly to influxdb3_lib::startup

wayne warren 2025-06-13 19:13:07 -06:00
parent ed6aa13a36
commit ec895378ee
2 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ enum Command {
Write(commands::write::Config),
}
pub fn startup() -> Result<(), std::io::Error> {
pub fn startup(args: Vec<String>) -> Result<(), std::io::Error> {
#[cfg(unix)]
install_crash_handler(); // attempt to render a useful stacktrace to stderr
@ -133,7 +133,7 @@ pub fn startup() -> Result<(), std::io::Error> {
TokioDatafusionConfig::copy_deprecated_env_aliases();
// Note the help code above *must* run before this function call
let config = Config::parse();
let config = Config::parse_from(args);
let tokio_runtime = config.runtime_config.builder()?.build()?;

View File

@ -1,5 +1,5 @@
use influxdb3_lib::startup;
fn main() -> Result<(), std::io::Error> {
startup()
startup(std::env::args().collect())
}