Skip to content

ArgumentParser 0.2.1

Compare
Choose a tag to compare
@natecook1000 natecook1000 released this 30 Jul 16:18
7255fd5

Additions

  • You can now generate Bash and Zsh shell completion scripts for commands,
    either by using the --generate-completion-script flag when running a
    command, or by calling the static completionScript(for:) method on a root
    ParsableCommand type. See the guide to completion scripts for
    information on customizing and installing the completion script for your
    command.

Fixes

  • Property wrappers without parameters can now be written without parentheses
    — e.g. @Flag var verbose = false.
  • When displaying default values for array properties, the help screen now
    correctly uses the element type's ExpressibleByArgument conformance to
    generate the description.
  • Running a project that defines a command as its own subcommand now fails with
    a useful error message.