Skip to content

Commit 9e63eed

Browse files
author
esteban zapata
committed
gist: Remove anonymous option.
1 parent 09813a3 commit 9e63eed

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

bin/gist

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,12 @@ specified STDIN will be read. The default filename for STDIN is "a.rb", and all
2424
filenames can be overridden by repeating the "-f" flag. The most useful reason
2525
to do this is to change the syntax highlighting.
2626
27-
If you'd like your gists to be associated with your GitHub account, so that you
28-
can edit them and find them in future, first use `gist --login` to obtain an
29-
Oauth2 access token. This is stored and used by gist in the future.
27+
All gists must to be associated with a GitHub account, so you will need to login with
28+
`gist --login` to obtain an Oauth2 access token. This is stored and used by gist in the future.
3029
3130
Private gists do not have guessable URLs and can be created with "-p", you can
3231
also set the description at the top of the gist by passing "-d".
3332
34-
Anonymous gists are not associated with your GitHub account, they can be created
35-
with "-a" even after you have used "gist --login".
36-
3733
If you would like to shorten the resulting gist URL, use the -s flag. This will
3834
use GitHub's URL shortener, git.io. You can also use -R to get the link to the
3935
raw gist.
@@ -50,7 +46,7 @@ original gist with the same GitHub account.
5046
If you want to skip empty files, use the --skip-empty flag. If all files are
5147
empty no gist will be created.
5248
53-
Usage: #{executable_name} [-o|-c|-e] [-p] [-s] [-R] [-d DESC] [-a] [-u URL]
49+
Usage: #{executable_name} [-o|-c|-e] [-p] [-s] [-R] [-d DESC] [-u URL]
5450
[--skip-empty] [-P] [-f NAME|-t EXT]* FILE*
5551
#{executable_name} --login
5652
#{executable_name} [-l|-r]
@@ -92,10 +88,6 @@ Usage: #{executable_name} [-o|-c|-e] [-p] [-s] [-R] [-d DESC] [-a] [-u URL]
9288
options[:update] = update
9389
end
9490

95-
opts.on("-a", "--anonymous", "Create an anonymous gist.") do
96-
options[:anonymous] = true
97-
end
98-
9991
opts.on("-c", "--copy", "Copy the resulting URL to the clipboard") do
10092
options[:copy] = true
10193
end

0 commit comments

Comments
 (0)