spook / ink2pdf

Inkscape to Multi-Page PDF Document
MIT License
17 stars 4 forks source link

-h and --help arguments make terminal display the script content #4

Open datalot-369 opened 3 years ago

datalot-369 commented 3 years ago

Steps to reproduce

  1. Execute ink2pdf --help

What happened?

The whole script is being shown in the terminal

image

What should have happened?

It should print the usage section only, like when putting a wrong argument.

image

System Specs

- MX Linux 19.3 amd64
- XFCE 4.14
- GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)
- Perl v5.28.1 "with 65 registered patches"
spook commented 3 years ago

@datalot-369 Thanx. I've seen that happen with other utilities too. I believe it's something to do with the Pod::Usage module, perhaps I'm using it incorrectly. It's time I check into what causes this behavior.
What's your TERM, LANG, LANGUAGE, and SHELL environment vars set to?

datalot-369 commented 1 year ago

It has been a while sin I wrote the issue. I will try to reproduce and post your request if replicated.

However, for that time, the contents of these env would most probably be:

TERM=xterm-256color LANG=en_US.UTF-8 LANGUAGE=(I don't know, my current system just prints a void line) SHELL=(I doubt, I was testing Oh My Zsh that time, but it could be /bin/bash)