+
+use clap::Parser;
+
fn main() {
// convert existing log statements to tracing events
// tracing_log::LogTracer::init().expect("logtracer init failed!");
}
-
#[tracing_attributes::instrument("main")]
pub fn main_inner() -> anyhow::Result<()> {
- use structopt::StructOpt;
- use bcachefs_mount::{Options, filesystem, key};
+ use bcachefs_mount::{Cli, filesystem, key};
unsafe {
libc::setvbuf(
filesystem::stdout,
);
// libc::fflush(filesystem::stdout);
}
- let opt = Options::from_args();
-
+ let opt = Cli::parse();
+
tracing::trace!(?opt);
let fss = filesystem::probe_filesystems()?;