New upstream snapshot.
Debian Janitor
2 years ago
0 | 0 |
<p align="center">
|
1 | 1 |
|
2 | |
<img src="/logo.png" />
|
|
2 |
<img src="https://raw.githubusercontent.com/integrii/flaggy/master/logo.png" />
|
3 | 3 |
<br />
|
4 | 4 |
<a href="https://goreportcard.com/report/github.com/integrii/flaggy"><img src="https://goreportcard.com/badge/github.com/integrii/flaggy"></a>
|
5 | |
<a href="https://travis-ci.org/integrii/flaggy"><img src="https://travis-ci.org/integrii/flaggy.svg?branch=master"></a>
|
6 | |
<a href="http://godoc.org/github.com/integrii/flaggy"><img src="https://camo.githubusercontent.com/d48cccd1ce67ddf8ba7fc356ec1087f3f7aa6d12/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f6c696c65696f2f6c696c653f7374617475732e737667"></a>
|
|
5 |
<a href="https://travis-ci.org/integrii/flaggy"><img src="https://travis-ci.org/integrii/flaggy.svg?branch=master"></a>
|
|
6 |
<a href="https://pkg.go.dev/github.com/integrii/flaggy"> <img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white"></a>
|
7 | 7 |
<a href="http://unlicense.org/"><img src="https://img.shields.io/badge/license-Unlicense-blue.svg"></a>
|
8 | 8 |
<a href="https://github.com/avelino/awesome-go"><img src="https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg"></a>
|
|
9 |
<a href="https://gophers.slack.com/messages/CBMUGQYRH" target="_blank"><img src="https://img.shields.io/badge/slack-@gophers/flaggy-blue.svg?logo=slack"></a>
|
9 | 10 |
</p>
|
10 | 11 |
|
11 | 12 |
Sensible and _fast_ command-line flag parsing with excellent support for **subcommands** and **positional values**. Flags can be at any position. Flaggy has no required project or package layout like [Cobra requires](https://github.com/spf13/cobra/issues/641), and **no external dependencies**!
|
12 | 13 |
|
13 | |
Check out the [godoc](http://godoc.org/github.com/integrii/flaggy), [examples directory](https://github.com/integrii/flaggy/tree/master/examples), and [examples in this readme](https://github.com/integrii/flaggy#super-simple-example) to get started quickly. You can also read the Flaggy introduction post with helpful examples [on my weblog](https://ericgreer.info/post/a-better-flags-package-for-go/).
|
|
14 |
Check out the [go doc](http://pkg.go.dev/github.com/integrii/flaggy), [examples directory](https://github.com/integrii/flaggy/tree/master/examples), and [examples in this readme](https://github.com/integrii/flaggy#super-simple-example) to get started quickly. You can also read the Flaggy introduction post with helpful examples [on my weblog](https://ericgreer.info/post/a-better-flags-package-for-go/).
|
14 | 15 |
|
15 | 16 |
# Installation
|
16 | 17 |
|
0 | |
golang-github-integrii-flaggy (1.4.4-1) UNRELEASED; urgency=medium
|
|
0 |
golang-github-integrii-flaggy (1.4.4+git20210708.1.5f3540f-1) UNRELEASED; urgency=medium
|
1 | 1 |
|
2 | 2 |
[ Dawid Dziurla ]
|
3 | 3 |
* New upstream version 1.4.4
|
|
9 | 9 |
Repository-Browse.
|
10 | 10 |
* Apply multi-arch hints.
|
11 | 11 |
+ golang-github-integrii-flaggy-dev: Add Multi-Arch: foreign.
|
|
12 |
* New upstream snapshot.
|
12 | 13 |
|
13 | |
-- Dawid Dziurla <dawidd0811@gmail.com> Sun, 23 Feb 2020 13:28:44 +0100
|
|
14 |
-- Dawid Dziurla <dawidd0811@gmail.com> Fri, 12 Nov 2021 05:41:59 -0000
|
14 | 15 |
|
15 | 16 |
golang-github-integrii-flaggy (1.4.0-1) unstable; urgency=medium
|
16 | 17 |
|
166 | 166 |
|
167 | 167 |
// Parse calculates all flags and subcommands
|
168 | 168 |
func (p *Parser) Parse() error {
|
169 | |
|
170 | |
err := p.ParseArgs(os.Args[1:])
|
171 | |
if err != nil {
|
172 | |
return err
|
173 | |
}
|
174 | |
return nil
|
175 | |
|
|
169 |
return p.ParseArgs(os.Args[1:])
|
176 | 170 |
}
|
177 | 171 |
|
178 | 172 |
// ShowHelp shows Help without an error message
|