rockowitz / ddcutil

Control monitor settings using DDC/CI and USB
http://www.ddcutil.com
GNU General Public License v2.0
978 stars 40 forks source link

--async deprecated but documented config options don't exist #364

Closed EdJoPaTo closed 8 months ago

EdJoPaTo commented 9 months ago

Arch Linux packages 2.1.0 now.

Called with --async it prints: Deprecated option ignored: --async. Use --i2c_bus_check_async_min or --ddc_check_async_min. Using them they don't exist (Unknown option --i2c_bus_check_async_min)

The options in the man page don't exist either. I got suspicious as one of them seems to have a typo, a duplicate c on asynCc: --asyncc-i2c-bus-checks-min

https://github.com/rockowitz/ddcutil/blob/056098c30d350e5a7d53a668f7399ba8d67f443d/man/ddcutil.1#L288-L297

In the sources they are written differently and don't contain underlines:

https://github.com/rockowitz/ddcutil/blob/056098c30d350e5a7d53a668f7399ba8d67f443d/src/cmdline/cmd_parser_goption.c#L1096-L1107

I think this should be synced to be the same in all three places, the --async deprecation stdout hint, the man page and the actual command line parsing.

rockowitz commented 9 months ago

Thanks for the report. It looks like a patch release will be coming soon.

The options are parsed properly, but the informational messages and man page need to be corrected.

rockowitz commented 9 months ago

The man page in branch 2.1.1-dev has been extensively edited and should reflect the discrepancies you identified.