added the wrap distance and no wrap options

This commit is contained in:
spiders 2022-05-04 17:52:45 -07:00
parent b393dcfa3f
commit 3465856e76
2 changed files with 8 additions and 9 deletions

View file

@ -51,8 +51,8 @@ struct Args {
#[clap(short = 'f', long)] #[clap(short = 'f', long)]
nimi: Option<String>, nimi: Option<String>,
#[clap(short = 'W', long)] #[clap(short = 'W', long, default_value = "40")]
pakala: Option<String>, pakala: usize,
#[clap(short = 'n', long)] #[clap(short = 'n', long)]
pakala_ala: bool, pakala_ala: bool,
@ -191,7 +191,7 @@ impl Args {
CritterConfig::config_from_string(&eyes, &tongue, &line, &object, &Some(format), &name); CritterConfig::config_from_string(&eyes, &tongue, &line, &object, &Some(format), &name);
let bubble_config = BubbleConfig::config_from_string( let bubble_config = BubbleConfig::config_from_string(
critter_config.template.anchor, critter_config.template.anchor,
DEFAULT_MAXIMUM_LINE_LENGTH, self.pakala,
self.pakala_ala, self.pakala_ala,
None, None,
); );

11
test
View file

@ -1,11 +1,8 @@
#!/usr/bin/fish #!/usr/bin/fish
echo 1234567890123456789012345678901234567890123456789012345678901234567890 | ./target/debug/kijetesantakaluotokieni echo 123456789\|123456789\|123456789\|123456789\|123456789\|123456789\|123456789\| | ./target/debug/kijetesantakaluotokieni
echo -e "“Oh, you wicked little thing!” cried Alice, catching up the kitten, and giving it a little kiss to make it understand that it was in disgrace. “Really, Dinah ought to have taught you better manners!”\n\n“You ought, Dinah, you know you ought!” she added, looking reproachfully at the old cat, and speaking in as cross a voice as she could manage—and then she scrambled back into the arm-chair, taking the kitten and the worsted with her, and began winding up the ball again." | ./target/debug/kijetesantakaluotokieni echo 123456789\|123456789\|123456789\|123456789\|123456789\|123456789\|123456789\| | ./target/debug/kijetesantakaluotokieni --pakala 60
#echo -e "'Oh, you wicked little thing!' cried Alice, catching up the kitten, and giving it a little kiss to make it understand that it was in disgrace. 'Really, Dinah ought to have taught you better manners!'\n\n'You ought, Dinah, you know you ought!' she added, looking reproachfully at the old cat, and speaking in as cross a voice as she could manage—and then she scrambled back into the arm-chair, taking the kitten and the worsted with her, and began winding up the ball again." | ./target/debug/kijetesantakaluotokieni
echo "Белеет парус одинокий echo "Белеет парус одинокий
В тумане моря голубом!.. В тумане моря голубом!..
@ -22,7 +19,9 @@ echo | ./target/debug/kijetesantakaluotokieni
echo mu | ./target/debug/kijetesantakaluotokieni echo mu | ./target/debug/kijetesantakaluotokieni
echo 1234567890123 | ./target/debug/kijetesantakaluotokieni echo 1234567890123 | ./target/debug/kijetesantakaluotokieni
echo 12345678901234 | ./target/debug/kijetesantakaluotokieni
echo Pingo pi n\'t go li sitelen | ./target/debug/kijetesantakaluotokieni echo Pingo pi n\'t go li sitelen | ./target/debug/kijetesantakaluotokieni
figlet the nineties | ./target/debug/kijetesantakaluotokieni --pakala-ala
echo 420 lol | ./target/debug/kijetesantakaluotokieni echo 420 lol | ./target/debug/kijetesantakaluotokieni