crash!(AppExitCode::RunAsRoot,"Running malachite as root is disallowed as it can lead to system breakage. Instead, malachite will prompt you when it needs superuser permissions");
crash!(AppExitCode::RunAsRoot,"Running malachite as root is disallowed as it can lead to system breakage. Instead, malachite will prompt you when it needs superuser permissions");
}
}
// Get required variables
letargs: Args=Args::parse();
letargs: Args=Args::parse();
letexclude=&args.exclude;
letexclude=&args.exclude;
letverbose=args.verbose;
letverbose=args.verbose;
@ -30,56 +28,15 @@ fn main() {
log!(verbose,"Exclude: {:?}",exclude);
log!(verbose,"Exclude: {:?}",exclude);
log!(verbose,"Verbose: You guess. :)");
log!(verbose,"Verbose: You guess. :)");
// Parse config
letconfig=parse_cfg(verbose);
letconfig=parse_cfg(verbose);
log!(verbose,"Config: {:?}",config);
log!(verbose,"Config: {:?}",config);
ifPath::exists("../.git".as_ref()){
// Get repository mode status
log!(verbose,"Detected parent git repository");
info!("Parent directory is a git directory, pulling latest mlc.toml. It is advised you run mlc pull/update in all malachite directories");