Uncoupwe --ascii-only and is_runtime

pull/5/head
Isaac Mills 3 years ago
parent 73f81bc821
commit c8c3c96df6
No known key found for this signature in database
GPG Key ID: B67D7410F33A0F61

@ -181,7 +181,11 @@ impl<'a> UwUify<'a> {
if !self.is_runtime {
if random_value <= self.faces {
if self.ascii {
out.write_all(ASCII[random_int!(&mut seeder, 0..ASCII_SIZE)])?;
} else {
out.write_all(FACES[random_int!(&mut seeder, 0..FACES_SIZE)])?;
}
out.write_all(b" ")?;
} else if random_value <= self.actions {
out.write_all(ACTIONS[random_int!(&mut seeder, 0..ACTIONS_SIZE)])?;

@ -108,8 +108,8 @@ macro_rules! clap_panic {
}
macro_rules! is_runtime {
($faces:expr, $actions:expr, $ascii:expr, $stutters:expr) => {
$faces > 0 || $actions > 0 || $ascii > 0 || $stutters > 0
($faces:expr, $actions:expr, $stutters:expr) => {
$faces > 0 || $actions > 0 || $stutters > 0
};
}
@ -130,7 +130,6 @@ fn main() {
is_runtime!(
matches.occurrences_of("faces"),
matches.occurrences_of("actions"),
matches.occurrences_of("ascii-only"),
matches.occurrences_of("stutters")
),
)

Loading…
Cancel
Save