FDH2 / UxPlay

AirPlay Unix mirroring server
GNU General Public License v3.0
1.35k stars 72 forks source link

--help option #185

Closed rogerbinns closed 1 year ago

rogerbinns commented 1 year ago

It would be nice if uxplay provided standard help text. It seems very determined not to provide any!

$ ./uxplay --help
unknown option --help, stopping
$ ./uxplay -help
unknown option -help, stopping
$ ./uxplay -?
unknown option -?, stopping
$ ./uxplay -
unknown option -, stopping
$ ./uxplay 231312
unknown option 231312, stopping

I eventually discovered via -v that -h works. Perhaps it is worth adding the line for help, use option "-h" after printing the unknown option message?

fduncanh commented 1 year ago

done

> uxplay --help
unknown option --help, stopping (for help use option "-h")

EDIT: now also added "--help" "-help" "-?" as undocumented synonyms for "-h"