Documentation
¶
Overview ¶
Copyright 2025 The Joe-cli Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2025 The Joe-cli Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
View Source
const ( OnlyShortNoValue = OptionGroup(iota) // -v OnlyShortNoValueOptional // [-v] OtherOptional // [--long=value] Other // --long=value ActionGroup // { --help|--version} Hidden )
View Source
const ( Bold = ansiterm.Bold Underline = ansiterm.Underline )
Variables ¶
This section is empty.
Functions ¶
func ArgCounter ¶
func Placeholder ¶
Types ¶
type Command ¶
type Expr ¶
type Flag ¶
type Flag struct {
Short string
Shorts []rune
Long string
Primary string // Long if present, otherwise Short
Separator string
Names []string
AlternateNames []string
Value *Value
Group OptionGroup
}
type OptionGroup ¶
type OptionGroup int
type Usage ¶
type Usage struct {
// contains filtered or unexported fields
}
func ParseUsage ¶
func (*Usage) Placeholders ¶
func (*Usage) WithoutPlaceholders ¶
Click to show internal directories.
Click to hide internal directories.