Skip to content

Commit 22235c2

Browse files
authored
Update documentation for gist create command to reflect default of secret.
1 parent 936d6e1 commit 22235c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cmd/gist/create/create.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
5858
Gists can be created from one or multiple files. Alternatively, pass "-" as
5959
file name to read from standard input.
6060
61-
By default, gists are private; use '--public' to make publicly listed ones.
61+
By default, gists are secret; use '--public' to make publicly listed ones.
6262
`),
6363
Example: heredoc.Doc(`
6464
# publish file 'hello.py' as a public gist
@@ -97,7 +97,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
9797

9898
cmd.Flags().StringVarP(&opts.Description, "desc", "d", "", "A description for this gist")
9999
cmd.Flags().BoolVarP(&opts.WebMode, "web", "w", false, "Open the web browser with created gist")
100-
cmd.Flags().BoolVarP(&opts.Public, "public", "p", false, "List the gist publicly (default: private)")
100+
cmd.Flags().BoolVarP(&opts.Public, "public", "p", false, "List the gist publicly (default: secret)")
101101
cmd.Flags().StringVarP(&opts.FilenameOverride, "filename", "f", "", "Provide a filename to be used when reading from STDIN")
102102
return cmd
103103
}

0 commit comments

Comments
 (0)