args

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommandFromArgs

func GetCommandFromArgs(args []string) (command []string, hasFlags bool)

GetCommandFromArgs returns command from command args. command is determined as a whole string after terminator (`--`) if terminator present. if no terminator, considering whole string as command. this goes well with flag.Parse which will stop parsing before terminator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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