@@ -1785,7 +1785,7 @@ fn custom_headers_headers() {
1785
1785
. require_delimiter ( true )
1786
1786
. value_delimiter ( ':' ) ,
1787
1787
)
1788
- . help_heading ( Some ( "NETWORKING" ) )
1788
+ . next_help_heading ( Some ( "NETWORKING" ) )
1789
1789
. arg (
1790
1790
Arg :: new ( "no-proxy" )
1791
1791
. short ( 'n' )
@@ -1842,14 +1842,14 @@ fn multiple_custom_help_headers() {
1842
1842
. require_delimiter ( true )
1843
1843
. value_delimiter ( ':' ) ,
1844
1844
)
1845
- . help_heading ( Some ( "NETWORKING" ) )
1845
+ . next_help_heading ( Some ( "NETWORKING" ) )
1846
1846
. arg (
1847
1847
Arg :: new ( "no-proxy" )
1848
1848
. short ( 'n' )
1849
1849
. long ( "no-proxy" )
1850
1850
. help ( "Do not use system proxy settings" ) ,
1851
1851
)
1852
- . help_heading ( Some ( "SPECIAL" ) )
1852
+ . next_help_heading ( Some ( "SPECIAL" ) )
1853
1853
. arg (
1854
1854
arg ! ( -b --"birthday-song" <song> "Change which song is played for birthdays" )
1855
1855
. help_heading ( Some ( "OVERRIDE SPECIAL" ) ) ,
@@ -1862,7 +1862,7 @@ fn multiple_custom_help_headers() {
1862
1862
. arg ( arg ! (
1863
1863
-v --"birthday-song-volume" <volume> "Change the volume of the birthday song"
1864
1864
) )
1865
- . help_heading ( None )
1865
+ . next_help_heading ( None )
1866
1866
. arg (
1867
1867
Arg :: new ( "server-addr" )
1868
1868
. short ( 'a' )
@@ -1912,23 +1912,23 @@ fn custom_help_headers_hide_args() {
1912
1912
. author ( "Will M." )
1913
1913
. about ( "does stuff" )
1914
1914
. version ( "1.4" )
1915
- . help_heading ( Some ( "NETWORKING" ) )
1915
+ . next_help_heading ( Some ( "NETWORKING" ) )
1916
1916
. arg (
1917
1917
Arg :: new ( "no-proxy" )
1918
1918
. short ( 'n' )
1919
1919
. long ( "no-proxy" )
1920
1920
. help ( "Do not use system proxy settings" )
1921
1921
. hide_short_help ( true ) ,
1922
1922
)
1923
- . help_heading ( Some ( "SPECIAL" ) )
1923
+ . next_help_heading ( Some ( "SPECIAL" ) )
1924
1924
. arg (
1925
1925
arg ! ( -b --song <song> "Change which song is played for birthdays" )
1926
1926
. help_heading ( Some ( "OVERRIDE SPECIAL" ) ) ,
1927
1927
)
1928
1928
. arg ( arg ! (
1929
1929
-v --"song-volume" <volume> "Change the volume of the birthday song"
1930
1930
) )
1931
- . help_heading ( None )
1931
+ . next_help_heading ( None )
1932
1932
. arg (
1933
1933
Arg :: new ( "server-addr" )
1934
1934
. short ( 'a' )
@@ -2392,7 +2392,7 @@ fn custom_heading_pos() {
2392
2392
let app = App :: new ( "test" )
2393
2393
. version ( "1.4" )
2394
2394
. arg ( Arg :: new ( "gear" ) . help ( "Which gear" ) )
2395
- . help_heading ( Some ( "NETWORKING" ) )
2395
+ . next_help_heading ( Some ( "NETWORKING" ) )
2396
2396
. arg ( Arg :: new ( "speed" ) . help ( "How fast" ) ) ;
2397
2397
2398
2398
assert ! ( utils:: compare_output(
@@ -2418,7 +2418,7 @@ fn only_custom_heading_opts_no_args() {
2418
2418
. version ( "1.4" )
2419
2419
. setting ( AppSettings :: DisableVersionFlag )
2420
2420
. mut_arg ( "help" , |a| a. hide ( true ) )
2421
- . help_heading ( Some ( "NETWORKING" ) )
2421
+ . next_help_heading ( Some ( "NETWORKING" ) )
2422
2422
. arg ( arg ! ( -s --speed <SPEED > "How fast" ) . required ( false ) ) ;
2423
2423
2424
2424
assert ! ( utils:: compare_output(
@@ -2444,7 +2444,7 @@ fn only_custom_heading_pos_no_args() {
2444
2444
. version ( "1.4" )
2445
2445
. setting ( AppSettings :: DisableVersionFlag )
2446
2446
. mut_arg ( "help" , |a| a. hide ( true ) )
2447
- . help_heading ( Some ( "NETWORKING" ) )
2447
+ . next_help_heading ( Some ( "NETWORKING" ) )
2448
2448
. arg ( Arg :: new ( "speed" ) . help ( "How fast" ) ) ;
2449
2449
2450
2450
assert ! ( utils:: compare_output(
0 commit comments