use std::env;
use std::error::Error;
use std::process;
fn main() -> Result<(), Box<dyn Error>> {
let args = fs_encrypt::parse_arguments(env::args()).unwrap_or_else(|err| {
eprintln!("invalid arguments: {err}");
process::exit(1);
});
if let Err(e) = fs_encrypt::run(args) {
eprintln!("file not found or missing permissions: {e}");
process::exit(1);
}
Ok(())
}