usage

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 3 Imported by: 1

README

usage

Installation

go get github.com/orisano/usage

How to use

package main

import (
    "flag"
    "fmt"
    
    "github.com/orisano/usage"
)

func main() {
    flag.Usage = usage.Ordered("n", "N")
    n := flag.Int("n", 0, "number n")
    N := flag.Int("N", 1, "number N")
    flag.Parse()
    
    fmt.Println(*n, *N)
}

Author

Nao Yonashiro (@orisano)

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ordered

func Ordered(names ...string) func()

Types

This section is empty.

Jump to

Keyboard shortcuts

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