sflag

package module
v0.0.0-...-19a1602 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 1 Imported by: 0

README

sflag

Golang package to easily handle CLI flags

Introduction

sflag stands for "simple flag" and this little project tries to be a simply but effective way of creating and parsing CLI arguments.

Features

  • Single and double dashes are allowed
  • Arguments with two names
  • Easy to use

Examples



Changelog

See CHANGELOG.md

License

This project is under MIT license

Copyright © 2023, D3Ext

Support

Buy Me A Coffee

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(name1, name2 string, default_value bool) bool

func BoolVar

func BoolVar(variable bool, name1, name2 string, default_value bool)

func Int

func Int(name1, name2 string, default_value int) int

func IntVar

func IntVar(variable int, name1, name2 string, default_value int)

func Parse

func Parse()

func String

func String(name1, name2, default_value string) string

func StringVar

func StringVar(variable, name1, name2, default_value string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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