argparser

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package argparser offers command line argument parsing utilities.

Index

Constants

View Source
const (
	CaptureAllFlag = 1 << iota
	FilterFlag
	PromiscuousFlag
	MonitorFlag
	AutoFlag
	HexDumpFlag
	SummaryFlag
	IfaceFlag
	InputFileFlag
	OutputFileFlag
)

Variables

View Source
var ErrHelp = errors.New("user requested help")

Functions

func Usage

func Usage()

Types

type Options

type Options struct {
	Flags      uint16
	Filter     string
	IfaceName  string
	InputFile  string
	OutputFile string
}

func ParseArgs

func ParseArgs(args []string) (*Options, error)

Jump to

Keyboard shortcuts

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