Adds documentation for a specific argument to the documentation. Arguments are displayed in the order they are added.
(
mut self,
arg_name: impl Into<String>,
arg_description: impl Into<String>,
)
| 260 | /// |
| 261 | /// Arguments are displayed in the order they are added. |
| 262 | pub fn with_argument( |
| 263 | mut self, |
| 264 | arg_name: impl Into<String>, |
| 265 | arg_description: impl Into<String>, |
| 266 | ) -> Self { |
| 267 | let mut args = self.arguments.unwrap_or_default(); |
| 268 | args.push((arg_name.into(), arg_description.into())); |
| 269 | self.arguments = Some(args); |
| 270 | self |
| 271 | } |
| 272 | |
| 273 | /// Add a standard "expression" argument to the documentation |
| 274 | /// |
no test coverage detected