@@ -624,6 +624,13 @@ impl Command {
624
624
625
625
/// Custom error message for post-parsing validation
626
626
///
627
+ /// **Note:** this will ensure the `Command` has been sufficiently [built][Command::build] for any
628
+ /// relevant context, including usage.
629
+ ///
630
+ /// # Panics
631
+ ///
632
+ /// If contradictory arguments or settings exist (debug builds).
633
+ ///
627
634
/// # Examples
628
635
///
629
636
/// ```rust
@@ -906,6 +913,12 @@ impl Command {
906
913
///
907
914
/// See also [`Command::print_long_help`].
908
915
///
916
+ /// **Note:** this will ensure the `Command` has been sufficiently [built][Command::build].
917
+ ///
918
+ /// # Panics
919
+ ///
920
+ /// If contradictory arguments or settings exist (debug builds).
921
+ ///
909
922
/// # Examples
910
923
///
911
924
/// ```rust
@@ -931,6 +944,12 @@ impl Command {
931
944
///
932
945
/// See also [`Command::print_help`].
933
946
///
947
+ /// **Note:** this will ensure the `Command` has been sufficiently [built][Command::build].
948
+ ///
949
+ /// # Panics
950
+ ///
951
+ /// If contradictory arguments or settings exist (debug builds).
952
+ ///
934
953
/// # Examples
935
954
///
936
955
/// ```rust
@@ -959,6 +978,12 @@ impl Command {
959
978
///
960
979
/// See also [`Command::render_long_help`].
961
980
///
981
+ /// **Note:** this will ensure the `Command` has been sufficiently [built][Command::build].
982
+ ///
983
+ /// # Panics
984
+ ///
985
+ /// If contradictory arguments or settings exist (debug builds).
986
+ ///
962
987
/// # Examples
963
988
///
964
989
/// ```rust
@@ -986,6 +1011,12 @@ impl Command {
986
1011
///
987
1012
/// See also [`Command::render_help`].
988
1013
///
1014
+ /// **Note:** this will ensure the `Command` has been sufficiently [built][Command::build].
1015
+ ///
1016
+ /// # Panics
1017
+ ///
1018
+ /// If contradictory arguments or settings exist (debug builds).
1019
+ ///
989
1020
/// # Examples
990
1021
///
991
1022
/// ```rust
@@ -1091,6 +1122,12 @@ impl Command {
1091
1122
1092
1123
/// Usage statement
1093
1124
///
1125
+ /// **Note:** this will ensure the `Command` has been sufficiently [built][Command::build].
1126
+ ///
1127
+ /// # Panics
1128
+ ///
1129
+ /// If contradictory arguments or settings exist (debug builds).
1130
+ ///
1094
1131
/// ### Examples
1095
1132
///
1096
1133
/// ```rust
0 commit comments