Skip to content

Commit 55c91d5

Browse files
author
Andreas Behringer
authored
Merge pull request #5 from behringer24/doc/license-information
Add license and copyright information
2 parents c0ee31d + d1baaaa commit 55c91d5

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# argumentative
22
Go argument parser fast and simple
33

4-
[![Build + Test](https://github.com/behringer24/argumentative/actions/workflows/go.yml/badge.svg)](https://github.com/behringer24/argumentative/actions/workflows/go.yml)
4+
[![Build + Test](https://github.com/behringer24/argumentative/actions/workflows/go.yml/badge.svg)](https://github.com/behringer24/argumentative/actions/workflows/go.yml)
5+
[![Go Reference](https://pkg.go.dev/badge/github.com/behringer24/argumentative.svg)](https://pkg.go.dev/github.com/behringer24/argumentative)
6+
7+
https://pkg.go.dev/github.com/behringer24/argumentative
8+
59

610
## Why
711
I experimented with a lot of Go command line argument parsers to build simple but powerful cli applications. I like the way that pythons _argparse_ module works, but did not find a suitable replacemant for my current Go projects. Some seem to be abandoned and even the big framework-like tools did not handle positional arguments like I would like them to work. So this is because and because: Why not?
@@ -192,3 +196,8 @@ result = flags.Flags().AddPositional("longname", required, "default", "Descripti
192196
`Descriptive help text` A brief description of the parameter. Keep it short and simple, may be omitted but why should you?
193197

194198
Consider the order of positional arguments in your command line. Optional arguments must come last as they would be confused with other arguments. Required arguments must come first. If you are struggling consider to use named string flags.
199+
200+
## License
201+
202+
Argumentative is released under the GNU GENERAL PUBLIC LICENSE Version 3. See [LICENSE](https://github.com/behringer24/argumentative/blob/main/LICENSE)
203+

argumentative.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2023 The Argumentative Authors
2+
//
3+
// Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://fsf.org/
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
package argumentative
216

317
import (

0 commit comments

Comments
 (0)