File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -174,34 +174,6 @@ impl<'a> Argument<'a> {
174174}
175175
176176impl Display for Argument < ' _ > {
177- /// Outputs a representation of the argument that approximates the original string.
178- ///
179- /// This function manually attempts to recreate the original string that was parsed into this
180- /// argument. It doesn't necessarily have to reflect the original, which is the case with
181- /// values like `--option=value` - the `=` will be lost.
182- ///
183- /// # Examples
184- ///
185- /// ```rust
186- /// use std::borrow::Cow;
187- /// use sap::Argument;
188- ///
189- /// // Long option
190- /// let arg = Argument::Long("foo");
191- /// assert_eq!(arg.to_string(), "--foo");
192- ///
193- /// // Short option
194- /// let arg = Argument::Short('o');
195- /// assert_eq!(arg.to_string(), "-o");
196- ///
197- /// // Value argument
198- /// let arg = Argument::Value(Cow::Borrowed("bar"));
199- /// assert_eq!(arg.to_string(), "bar");
200- ///
201- /// // Stdio argument
202- /// let arg = Argument::Stdio;
203- /// assert_eq!(arg.to_string(), "-");
204- /// ```
205177 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
206178 use Argument :: { Long , Short , Stdio , Value } ;
207179
You can’t perform that action at this time.
0 commit comments