There was an error while loading. Please reload this page.
1 parent 4fce19e commit 09813a3Copy full SHA for 09813a3
bin/gist
@@ -148,6 +148,12 @@ Usage: #{executable_name} [-o|-c|-e] [-p] [-s] [-R] [-d DESC] [-a] [-u URL]
148
end.parse!
149
150
begin
151
+ if Gist.auth_token.nil?
152
+ puts 'Please log in with `gist --login`. ' \
153
+ '(Github now requires credentials to gist https://bit.ly/2GBBxKw)'
154
+ exit(1)
155
+ end
156
+
157
options[:output] = if options[:embed] && options[:shorten]
158
raise Gist::Error, "--embed does not make sense with --shorten"
159
elsif options[:embed]
0 commit comments