This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
pypihub
mirror of
https://github.com/brettlangdon/pypihub.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1
Wiki
Activity
Browse Source
add example.go
Alex Flint
10 years ago
parent
76293a5a72
commit
7e1437715b
1 changed files
with
14 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+14
-0
example/example.go
+ 14
- 0
example/example.go
View File
@ -0,0 +1,14 @@
package
main
import
"github.com/alexflint/go-arg"
func
main
(
)
{
var
args
struct
{
Input
string
`
arg:"positional"
`
Output
string
`
arg:"positional"
`
Foo
string
`
arg:"help:this argument is foo"
`
VeryLongArgument
int
`
arg:"help:this argument is very long"
`
Bar
float64
`
arg:"-b"
`
}
arg
.
MustParse
(
&
args
)
}
Write
Preview
Loading…
Cancel
Save