8000 Kingpin get stuck if "@" is found in the command line · Issue #185 · alecthomas/kingpin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Kingpin get stuck if "@" is found in the command line #185
Closed
@kaoet

Description

@kaoet

My code (The official example):

package main

import (
        "fmt"
        "gopkg.in/alecthomas/kingpin.v2"
)

var (
        verbose = kingpin.Flag("verbose", "Verbose mode.").Short('v').Bool()
        name    = kingpin.Arg("name", "Name of user.").Required().String()
)

func main() {
        kingpin.Parse()
        fmt.Printf("%v, %s\n", *verbose, *name)
}

My command: go run test.go @

What happens? Nothing! The program just get stuck, without any output.

What's expected? The library reports invalid syntax in command line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0