arg

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package arg is a helper package for parsing command-line arguments.

Index

Constants

View Source
const (
	// CharVomitVersion is the current version of the application
	CharVomitVersion = "v1.5.5"
)

Variables

This section is empty.

Functions

func Parse

func Parse(fs *flag.FlagSet) (exitAfter bool, rc int)

func RegisterFlags added in v1.6.0

func RegisterFlags(fs *flag.FlagSet)

RegisterFlags registers all command-line flags with the given FlagSet

func RemoveIndex added in v1.5.0

func RemoveIndex(s []int, index int) []int

func Usage

func Usage()

func Version added in v1.3.0

func Version() string

Version returns the current version of the application

Types

type ConfigType

type ConfigType struct {
	PasswordLen int
	Digits      bool
	ShowHelp    bool
	LowerCase   bool
	Symbols     bool
	UpperCase   bool
	WeakChars   bool
	Version     bool
	Excluded    string
}
var Config ConfigType

Jump to

Keyboard shortcuts

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