Fix datalad --help to not have *Global options* empty and list options in "options:" section#7028
Conversation
|
although changelog commit no longer has unfortunately adjusted test fails on travis and appveyor... need to figure why (passes locally). Could be python (argparse) version or how we install for testing... will need to troubleshoot |
|
@yarikoptic I think this may be because the snippet is pushed using |
Apparently in python 3.10 it is just "options:" while in 3.8 "optional arguments:" so we will match both now. I believe came up as a regression of e89ce43 and since we had no unittest. So I also added a test. Without this fix --help looked like options: -c (:name|name=value) ... *Global options* and nothing at the end after *Global options*.
hm, may be, odd though. I wish there was some log to check on github which might have given explanation. If we would not be able to overcome this limitation, it would be quite suboptimal :-/ |
|
failures on travis and appveyor unrelated now. |
|
PR released in |
Detected while considering #7027 (note: that one is against
master, this one --maint)I believe came up as a regression of e89ce43 and since we had no unittest. So I also added a test.
Without this fix --help looked like
and nothing at the end after Global options.