Skip to content

Commit

Permalink
document completion details
Browse files Browse the repository at this point in the history
  • Loading branch information
pacak committed Jul 30, 2024
1 parent acdcb86 commit f875ed5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ impl Args<'_> {
/// .unwrap_stdout();
/// assert_eq!(r, "-f");
/// ```
///
/// Note to self: shell passes "" as a parameter in situations like foo `--bar TAB`, bpaf
/// completion stubs adopt this conventions add pass it along. This is needed so completer can
/// tell the difference between `--bar` being completed or an argument to it in the example
/// above.
#[cfg(feature = "autocomplete")]
#[must_use]
pub fn set_comp(mut self, rev: usize) -> Self {
Expand Down

0 comments on commit f875ed5

Please sign in to comment.