Popularity
2.6
Stable
Activity
0.0
Declining
30
1
7

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.