@@ -10,6 +10,7 @@ import (
1010 "strings"
1111
1212 "github.com/AlecAivazis/survey/v2"
13+ "github.com/MakeNowJust/heredoc"
1314 "github.com/cli/cli/internal/config"
1415 "github.com/cli/cli/internal/ghrepo"
1516 "github.com/cli/cli/internal/run"
@@ -62,7 +63,20 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
6263 cmd := & cobra.Command {
6364 Use : "create <tag> [<files>...]" ,
6465 Short : "Create a new release" ,
65- Args : cobra .MinimumNArgs (1 ),
66+ Long : heredoc .Doc (`
67+ Create a new GitHub Release for a repository.
68+
69+ A list of asset files may be given to upload to the new release. To define a
70+ display label for an asset, append text starting with '#' after the file name.
71+ ` ),
72+ Example : heredoc .Doc (`
73+ # use release notes from a file
74+ $ gh release create v1.2.3 -F changelog.md
75+
76+ # upload a release asset with a display label
77+ $ gh release create v1.2.3 '/path/to/asset.zip#My display label'
78+ ` ),
79+ Args : cobra .MinimumNArgs (1 ),
6680 RunE : func (cmd * cobra.Command , args []string ) error {
6781 // support `-R, --repo` override
6882 opts .BaseRepo = f .BaseRepo
0 commit comments