flagexp

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package flagexp provides some experimental features to provide suggestions for typos in flag names. Requires the `pflag` package and is highly sensitive to changes in the package, as it's based on the error messages returned by the package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() ([]string, []string)

All returns all flags defined.

func ParseWithSuggestions

func ParseWithSuggestions(args []string) (err error)

ParseWithSuggestions parses the command-line arguments and suggests the closest flag name if a typo is detected.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL