aboutsummaryrefslogtreecommitdiff
path: root/opts.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-30 01:24:07 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-30 01:24:07 +0100
commit2b4e159a2472ef78f52f8190552b64015e95c1c5 (patch)
tree40c4fa8baf145b243156f0b03158aec16489451e /opts.go
parent625187cf19df20917f83f51fc9fbbc95d7842dd2 (diff)
Run gofmtv1.0.0
Diffstat (limited to 'opts.go')
-rw-r--r--opts.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/opts.go b/opts.go
index 71518e4..5a83e21 100644
--- a/opts.go
+++ b/opts.go
@@ -119,11 +119,11 @@ func Get(args []string, optstr string) (flags []Flag, optind int, err error) {
// When parsing, GetLong will also accept incomplete long-options if they
// are ambiguous. For example, given the following definition of opts:
//
-// opts := []LongOpt{
-// {Short: 'a', Long: "add", Arg: None},
-// {Short: 'd', Long: "delete", Arg: None},
-// {Short: 'D', Long: "defer", Arg: None},
-// }
+// opts := []LongOpt{
+// {Short: 'a', Long: "add", Arg: None},
+// {Short: 'd', Long: "delete", Arg: None},
+// {Short: 'D', Long: "defer", Arg: None},
+// }
//
// The options ‘--a’ and ‘--ad’ will parse as ‘--add’. The option ‘--de’
// will not parse however as it is ambiguous.