Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drewolson committed Nov 19, 2024
1 parent 9125039 commit a01470b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/clip.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ pub fn apply(mf: Command(fn(a) -> b), ma: Command(a)) -> Command(b) {
/// curried function and then provide arguments to be supplied to that function.
///
/// ```gleam
/// clip.command(fn(a) { fn(b) { #(a, b) } })
/// clip.command({
/// use a <- clip.parameter
/// use b <- clip.parameter
///
/// #(a, b)
/// })
/// |> clip.opt(opt.new("first"))
/// |> clip.opt(opt.new("second"))
/// |> clip.run(["--first", "foo", "--second", "bar"])
Expand Down

0 comments on commit a01470b

Please sign in to comment.