Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace os.Args[1:] to args #34

Closed
kgv opened this issue Dec 5, 2014 · 0 comments
Closed

Replace os.Args[1:] to args #34

kgv opened this issue Dec 5, 2014 · 0 comments

Comments

@kgv
Copy link

kgv commented Dec 5, 2014

File: cobra/command.go, 459 line

    -    c.Printf("%v: invalid command %#q\n", c.Root().Name(), os.Args[1:])
    +    c.Printf("%v: invalid command %#q\n", c.Root().Name(), args)

Output (with args []string{"help hh", "77"}):

    Output before:    testapp: invalid command []
    Output after:    testapp: invalid command [`help hh` `77`]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants