mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
improve the error message if nothing is passed to ghq create
This commit is contained in:
parent
0e02db0b9a
commit
68aa9d7c2e
|
|
@ -14,6 +14,11 @@ func doCreate(c *cli.Context) error {
|
|||
vcs = c.String("vcs")
|
||||
w = c.App.Writer
|
||||
)
|
||||
|
||||
if name == "" {
|
||||
return fmt.Errorf("repository name is required")
|
||||
}
|
||||
|
||||
u, err := newURL(name, false, true)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue