You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -351,8 +351,8 @@ Before parsing, you can set the following options:
351
351
`->capture_default_str()`: Store the current value attached and display it in the help string.
352
352
-`->default_function(std::string())`: Advanced: Change the function that `capture_default_str()` uses.
353
353
-`->always_capture_default()`: Always run `capture_default_str()` when creating new options. Only useful on an App's `option_defaults`.
354
-
-`default_str(string)`: Set the default string directly. This string will also be used as a default value if no arguments are passed and the value is requested.
355
-
-`default_val(value)`: 🆕 Generate the default string from a value and validate that the value is also valid. For options that assign directly to a value type the value in that type is also updated. Value must be convertible to a string(one of known types or have a stream operator).
354
+
-`->default_str(string)`: Set the default string directly. This string will also be used as a default value if no arguments are passed and the value is requested.
355
+
-`->default_val(value)`: 🆕 Generate the default string from a value and validate that the value is also valid. For options that assign directly to a value type the value in that type is also updated. Value must be convertible to a string(one of known types or have a stream operator).
356
356
-`->option_text(string)`: Sets the text between the option name and description.
0 commit comments