You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.arg(clap::arg!(--notroll).hide(true).required(false).value_parser(clap::value_parser!(bool)))// This argument isn't really needed and potentially defeats the purpose of the program but it is here so I can keep my sanity.
731
736
.get_matches();
732
737
733
-
let tokens = match matches.get_one::<PathBuf>("file"){
734
-
Some(path) => parse_file(path),
735
-
None => report_error("Please provide a path to run!".to_string()),
report_warning("Because the version your account was created on doesn't match your current version, your account was invalidated. Create a new one.".to_string());
760
-
SaveData{
761
-
account:None,
762
-
runs_so_far:0,
763
-
last_update:SystemTime::now().duration_since(UNIX_EPOCH).expect("Damn bro what kinda system you running").as_secs(),
764
-
}
765
-
}
766
-
}
767
-
Err(_) => SaveData{
768
-
account:None,
769
-
runs_so_far:0,
770
-
last_update:SystemTime::now().duration_since(UNIX_EPOCH).expect("Damn bro what kinda system you running").as_secs(),
let _ = open::that("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
778
742
report_error("I can't currently open a subscription page without doing some tax-evasion in-case somebody actually donates. Maybe later :/".to_string());
779
743
}
780
744
781
-
sillyness(&mut save_data);
745
+
let out_of_free_runs = ifletSome(no_troll) = matches.get_one::<bool>("notroll")
746
+
&& !(*no_troll)
747
+
{
748
+
letmut savefile_path = home::home_dir().expect("Couldn't locate your home directory, aborting");
report_warning("Because the version your account was created on doesn't match your current version, your account was invalidated. Create a new one.".to_string());
763
+
SaveData{
764
+
account:None,
765
+
runs_so_far:0,
766
+
last_update:SystemTime::now().duration_since(UNIX_EPOCH).expect("Damn bro what kinda system you running").as_secs(),
767
+
}
768
+
}
769
+
}
770
+
Err(_) => SaveData{
771
+
account:None,
772
+
runs_so_far:0,
773
+
last_update:SystemTime::now().duration_since(UNIX_EPOCH).expect("Damn bro what kinda system you running").as_secs(),
0 commit comments