From fc197be6c0753d3be3546cdc33925868a7ce5b4d Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Sun, 10 Jan 2016 15:23:49 -0500 Subject: [PATCH] document that clone directory is optional --- commands/clone.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/clone.go b/commands/clone.go index 7ae34e6c..e7f48341 100644 --- a/commands/clone.go +++ b/commands/clone.go @@ -11,7 +11,7 @@ import ( var cmdClone = &Command{ Run: clone, GitExtension: true, - Usage: "clone [-p] OPTIONS [USER/]REPOSITORY DIRECTORY", + Usage: "clone [-p] OPTIONS [USER/]REPOSITORY [DIRECTORY]", Short: "Clone a remote repository into a new directory", Long: `Clone repository "git://github.com/USER/REPOSITORY.git" into DIRECTORY as with git-clone(1). When USER/ is omitted, assumes @@ -36,6 +36,9 @@ func init() { $ gh clone -p jekyll_and_hyde > git clone git@github.com:YOUR_LOGIN/jekyll_and_hyde.git + + $ gh clone jekyll_and_hyde jekyll + > git clone git://github.com/YOUR_LOGIN/jekyll_and_hyde.git jekyll */ func clone(command *Command, args *Args) { if !args.IsParamsEmpty() { -- GitLab