Popularity
2.8
Growing
Activity
0.0
Stable
39
3
8

Programming language: Go
License: MIT License
Tags: Command Line     Standard CLI    

argv alternatives and similar packages

Based on the "Standard CLI" category.
Alternatively, view argv alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of argv or a related project?

Add another 'Standard CLI' Package

README

Argv

GoDoc Build Status Coverage Status Go Report Card

Argv is a library for Go to split command line string into arguments array.

Documentation

Documentation can be found at Godoc

Example

func TestArgv(t *testing.T) {
    args, err := Argv(" ls   `echo /`   |  wc  -l ", func(backquoted string) (string, error) {
        return backquoted, nil
    }, nil)
    if err != nil {
        t.Fatal(err)
    }
    expects := [][]string{
        []string{"ls", "echo /"},
        []string{"wc", "-l"},
    }
    if !reflect.DeepEqual(args, expects) {
        t.Fatal(args)
    }
}

LICENSE

MIT.


*Note that all licence references and agreements mentioned in the argv README section above are relevant to that project's source code only.