From 4a9dc0f45e950d6aae49a3613698f8088d9e141f Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 20 Feb 2018 18:30:34 -0500 Subject: Take multiple inputs to pngo --- bin/pngo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/pngo.c b/bin/pngo.c index 607df8f8..f19c468d 100644 --- a/bin/pngo.c +++ b/bin/pngo.c @@ -670,11 +670,11 @@ int main(int argc, char *argv[]) { } } - if (optind < argc) { - if (output || stdio) { - optimize(argv[optind], output); - } else { - optimize(argv[optind], argv[optind]); + if (argc - optind == 1 && (output || stdio)) { + optimize(argv[optind], output); + } else if (optind < argc) { + for (int i = optind; i < argc; ++i) { + optimize(argv[i], argv[i]); } } else { optimize(NULL, output); -- cgit 1.4.1 ght'>
summary refs log tree commit diff
path: root/bin/hnel.1 (unfollow)
Commit message (Expand)Author
2018-09-11Remove GAMES from BINSJune McEnroe
2018-09-11Rewrite bin.7 and render to plaintext READMEJune McEnroe
2018-09-11Add "blank" lines to man pagesJune McEnroe
2018-09-10Add mdoc syntax fileJune McEnroe
2018-09-08Fix Nm usage in multi-name man pagesJune McEnroe
2018-09-08Put real dates on man pagesJune McEnroe
2018-09-08Replace gfx README with REAMDE.7June McEnroe
2018-09-08Link gfx man pages in ~/.localJune McEnroeJune McEnroe
2019-02-18Use hi -o anchor in upJune McEnroe
2019-02-18Don't match nested parentheses in Tag for CJune McEnroe
2019-02-18Match whitespace between * [] {}June McEnroe
2019-02-18Fix function-like #define regexJune McEnroe
2019-02-18Match Tag in RustJune McEnroe
2019-02-18Match sh functions as TagJune McEnroe
2019-02-18Match Sh and Ss as Tag in mdocJune McEnroe
2019-02-18Match statics and typedefs as TagJune McEnroe
2019-02-18Clean up htmlHeaderJune McEnroe
2019-02-18Remove hi line numberingJune McEnroe
2019-02-18Add Tag class to hiJune McEnroe
2019-02-17Generate HTML with hi -n -f html -o anchorJune McEnroe
2019-02-17Add hi -f html -o anchor for line number linksJune McEnroe
2019-02-17Simplify temp trap in upJune McEnroe
2019-02-17Add line numbers to hiJune McEnroe
2019-02-17Always split spans after newlinesJune McEnroe
2019-02-15Color format specifiers light cyan in vimJune McEnroe
2019-02-15Highlight Interp as yellowJune McEnroe
2019-02-15Highlight strings in sh command substitutionsJune McEnroe
2019-02-15Add nmap gpJune McEnroe
2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe
2019-02-13Add forgotten "sixth" book of H2G2June McEnroe