THIS would be a killer for me.
Does the github API allow us to do this?
You can do this. Check the man page.
Are you sure? I can't find this function.
@justuseapen Yeah I'm pretty sure:
-p
flag in the usage synopsis:
$ hub create -h
Usage: git create [NAME] [-p] [-d DESCRIPTION] [-h HOMEPAGE]
hub help hub
says: "With -p
, create a private repository"Awesome thanks!
@mislav I think one missing spot where it could be documented better is:
$ hub create --help
Usage: hub create [-poc] [-d <DESCRIPTION>] [-h <HOMEPAGE>] [[<ORGANIZATION>/]<NAME>]
It's unclear what options poc
do without hitting the man page: man hub-create
@AlJohri with hub version 2.2.9, hub create --help
includes:
With -p, create a private repository
@darthwalsh Interesting... With the latest version on Homebrew (v2.12.0) The docs don't specify what -p
, -o
or -c
do.
☺ hub --version
git version 2.17.2 (Apple Git-113)
hub version 2.12.0
☺ hub create --help
Usage: hub create [-poc] [-d <DESCRIPTION>] [-h <HOMEPAGE>] [[<ORGANIZATION>/]<NAME>]
@haysclark You can view the full docs with hub help create
.
Perhaps hub create --help
should show you the full man page just like hub help create
does 🤔
@mislav I very much think so!
Just hit this issue, and I want to say that, they way I explore cmd usually is
command sub-command -h
So just displaying a bunch of options there without any explanation does not help much.
I think adding a short explanation for each option will help many users.
Thanks
Most helpful comment
@justuseapen Yeah I'm pretty sure:
-p
flag in the usage synopsis:$ hub create -h Usage: git create [NAME] [-p] [-d DESCRIPTION] [-h HOMEPAGE]
hub help hub
says: "With-p
, create a private repository"