clap

Module _cookbook

Source
Available on crate feature unstable-doc only.
Expand description

§Documentation: Cookbook

Typed arguments: derive

  • Topics:
    • Custom parse()

Custom cargo command: builder, derive

  • Topics:
    • Subcommands
    • Cargo plugins
    • custom terminal styles (colors)

find-like interface: builder

  • Topics:
    • Position-sensitive flags

git-like interface: builder, derive

  • Topics:
    • Subcommands
    • External subcommands
    • Optional subcommands
    • Default subcommands
    • last

pacman-like interface: builder

  • Topics:
    • Flag subcommands
    • Conflicting arguments

Escaped positionals with --: builder, derive

Multi-call

  • busybox: builder
    • Topics:
      • Subcommands
  • hostname: builder
    • Topics:
      • Subcommands

repl: builder, derive

  • Topics:
    • Read-Eval-Print Loops / Custom command lines

Modules§