hasflag

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT, MIT Imports: 2 Imported by: 0

Documentation

Overview

Package hasflag checks if `os.Args` has a specific flag. Correctly stops looking after an -- argument terminator.

Ported from https://github.com/sindresorhus/has-flag

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasFlag

func HasFlag(flag string) bool

HasFlag checks to see if the given flag was supplied on the command line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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