Szpadel / chrome-headless-render-pdf

223 stars 67 forks source link

Return non-zero error code when command fails #16

Closed zwippie closed 6 years ago

zwippie commented 6 years ago

For example, when the --url option is not provided then the usage info is printed, but the return code is zero. This makes it hard to catch errors.

Szpadel commented 6 years ago

You are right, It should work like that from beginning