提交 45ae66b6 编写于 作者: C Chris Wanstrath

install help

上级 064bf12f
......@@ -133,13 +133,31 @@ module Hub
end
alias_method "--version", :version
# $ hub install
# $ hub install check
# $ hub install standalone
# $ hub install standalone ~/bin
def install(args)
command, subcommand, target = args
if subcommand.to_s == 'standalone'
Standalone.save('hub', target.empty? ? '.' : target)
exit
else
puts <<-output
usage: hub install COMMAND [ARGS]
Commands:
standalone Installs the standalone `hub` script locally. If
a path is provided, attempts to install it there.
If not path is provided asks you to choose from
possible install locations.
check Checks if the current installation is up to date
by phoning home.
output
end
exit
end
# $ hub help
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册