khrome / ascii-art

A Node.js library for ansi codes, figlet fonts, ascii art and other ASCII graphics
MIT License
681 stars 287 forks source link

Using command in terminal #16

Closed mahmoud-zakria-sociomantic closed 5 years ago

mahmoud-zakria-sociomantic commented 5 years ago

Running some of commands in this page are not working https://github.com/khrome/ascii-art/blob/master/docs/Terminal.md

like: ascii-art text -s green "some text", ascii-art art textfiles.com

Output: Invalid target

What am I missing?

gregors commented 5 years ago

same

khrome commented 5 years ago

Thanks for the note, this is caused by some overly greedy format checking on an optional target, adding one more param (EX: ascii-art text -s green "some text" anything) will make it work for now, I'll post a fix shortly. It works correctly in version previous to 1.5 if that helps.

khrome commented 5 years ago

Fixed. Working as expected.

gregors commented 5 years ago

@khrome thank you!