qme icon indicating copy to clipboard operation
qme copied to clipboard

Please provide a simple help text

Open kseistrup opened this issue 2 years ago • 2 comments

It would be helpful if the qme command accepted at least a -h option for a minimal help text — e.g.:

$ qme -h
usage: qme [-h] COMMAND [ARG ...]

positional arguments:
  COMMAND     command to run
  ARG         optional argument(s)

options:
  -h, --help  show this help message and exit

As it is, qme will try ro queue -h as a command:

$ qme -h
2022/06/20 15:22:22 assuming server role
2022/06/20 15:22:22 enqueueing '-h'
2022/06/20 15:22:22 failed to execute command -h: exec: "-h": executable file not found in $PATH
2022/06/20 15:22:22 idling...
2022/06/20 15:22:22 listening on /tmp/qme.sock

PS: A -V/--version option would also come in handy — e.g., for bug reports.

kseistrup avatar Jun 20 '22 13:06 kseistrup

Very much agreed. This was also mentioned in https://github.com/abdusco/qme/issues/1. I'll add a proper argument parser for --help and other options down the line.

abdusco avatar Jun 20 '22 14:06 abdusco

Ah, thanks, I only looked at the issue titles before I submitted the ticket, so I didn't see it mentioned in #1.

kseistrup avatar Jun 20 '22 14:06 kseistrup