comparison tests/test-help.t @ 40955:f6187e60f792

help: present boolean arguments as "--[no-]foo" This should make it much more discoverable (we document it in `hg help flags`, but most users don't think to look there). Note that flags that default to None (and not False) will not get this new presentation. We can change the defaults to False later for flags where it makes sense (probably almost all boolean flags). Differential Revision: https://phab.mercurial-scm.org/D5432
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 14 Dec 2018 13:44:46 -0800
parents 8604f130eb43
children fcc0a7ac9ebd
comparison
equal deleted inserted replaced
40954:8604f130eb43 40955:f6187e60f792
438 --traceback always print a traceback on exception 438 --traceback always print a traceback on exception
439 --time time how long the command takes 439 --time time how long the command takes
440 --profile print command execution profile 440 --profile print command execution profile
441 --version output version information and exit 441 --version output version information and exit
442 -h --help display help and exit 442 -h --help display help and exit
443 --hidden consider hidden changesets (default: off) 443 --[no-]hidden consider hidden changesets (default: off)
444 --pager TYPE when to paginate (boolean, always, auto, or never) 444 --pager TYPE when to paginate (boolean, always, auto, or never)
445 (default: auto) 445 (default: auto)
446 446
447 (use 'hg help' for the full list of commands) 447 (use 'hg help' for the full list of commands)
448 448
538 --traceback always print a traceback on exception 538 --traceback always print a traceback on exception
539 --time time how long the command takes 539 --time time how long the command takes
540 --profile print command execution profile 540 --profile print command execution profile
541 --version output version information and exit 541 --version output version information and exit
542 -h --help display help and exit 542 -h --help display help and exit
543 --hidden consider hidden changesets (default: off) 543 --[no-]hidden consider hidden changesets (default: off)
544 --pager TYPE when to paginate (boolean, always, auto, or never) 544 --pager TYPE when to paginate (boolean, always, auto, or never)
545 (default: auto) 545 (default: auto)
546 546
547 Test the textwidth config option 547 Test the textwidth config option
548 548
903 --longdesc VALUE 903 --longdesc VALUE
904 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 904 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
905 xxxxxxxxxxxxxxxxxxxxxxx (default: 3) 905 xxxxxxxxxxxxxxxxxxxxxxx (default: 3)
906 -n -- normal desc 906 -n -- normal desc
907 --newline VALUE line1 line2 907 --newline VALUE line1 line2
908 --default-off enable X (default: off) 908 --[no-]default-off enable X (default: off)
909 --default-on enable Y (default: on) 909 --[no-]default-on enable Y (default: on)
910 --callableopt VALUE adds foo 910 --callableopt VALUE adds foo
911 --customopt VALUE adds bar 911 --customopt VALUE adds bar
912 --customopt-withdefault VALUE adds bar (default: foo) 912 --customopt-withdefault VALUE adds bar (default: foo)
913 913
914 (some details hidden, use --verbose to show complete help) 914 (some details hidden, use --verbose to show complete help)
2887 <td>output version information and exit</td></tr> 2887 <td>output version information and exit</td></tr>
2888 <tr><td>-h</td> 2888 <tr><td>-h</td>
2889 <td>--help</td> 2889 <td>--help</td>
2890 <td>display help and exit</td></tr> 2890 <td>display help and exit</td></tr>
2891 <tr><td></td> 2891 <tr><td></td>
2892 <td>--hidden</td> 2892 <td>--[no-]hidden</td>
2893 <td>consider hidden changesets (default: off)</td></tr> 2893 <td>consider hidden changesets (default: off)</td></tr>
2894 <tr><td></td> 2894 <tr><td></td>
2895 <td>--pager TYPE</td> 2895 <td>--pager TYPE</td>
2896 <td>when to paginate (boolean, always, auto, or never) (default: auto)</td></tr> 2896 <td>when to paginate (boolean, always, auto, or never) (default: auto)</td></tr>
2897 </table> 2897 </table>
3091 <td>output version information and exit</td></tr> 3091 <td>output version information and exit</td></tr>
3092 <tr><td>-h</td> 3092 <tr><td>-h</td>
3093 <td>--help</td> 3093 <td>--help</td>
3094 <td>display help and exit</td></tr> 3094 <td>display help and exit</td></tr>
3095 <tr><td></td> 3095 <tr><td></td>
3096 <td>--hidden</td> 3096 <td>--[no-]hidden</td>
3097 <td>consider hidden changesets (default: off)</td></tr> 3097 <td>consider hidden changesets (default: off)</td></tr>
3098 <tr><td></td> 3098 <tr><td></td>
3099 <td>--pager TYPE</td> 3099 <td>--pager TYPE</td>
3100 <td>when to paginate (boolean, always, auto, or never) (default: auto)</td></tr> 3100 <td>when to paginate (boolean, always, auto, or never) (default: auto)</td></tr>
3101 </table> 3101 </table>