@@ -32,15 +32,15 @@ If you would like to shorten the resulting gist URL, use the -s flag. This will
32
32
use GitHub's URL shortener, git.io.
33
33
34
34
To copy the resulting URL to your clipboard you can use the -c option, or to just
35
- open it directly in your browser, use -o. Using the -j option will copy the embeddable
35
+ open it directly in your browser, use -o. Using the -e option will copy the embeddable
36
36
URL to the clipboard. You can add `alias jist='jist -c'` to your shell's rc file to configure this
37
37
behaviour by default.
38
38
39
39
Instead of creating a new jist, you can update an existing one by passing its ID
40
40
or URL with "-u". For this to work, you must be logged in, and have created the
41
41
original gist with the same GitHub account.
42
42
43
- Usage: #{ executable_name } [-o|-c|-j ] [-p] [-s] [-d DESC] [-t TOKEN|-a] [-u URL] [-P] [-f NAME]* FILE*
43
+ Usage: #{ executable_name } [-o|-c|-e ] [-p] [-s] [-d DESC] [-t TOKEN|-a] [-u URL] [-P] [-f NAME]* FILE*
44
44
#{ executable_name } --login
45
45
46
46
EOS
@@ -82,8 +82,8 @@ Usage: #{executable_name} [-o|-c|-j] [-p] [-s] [-d DESC] [-t TOKEN|-a] [-u URL]
82
82
opts . on ( "-c" , "--copy" , "Copy the resulting URL to the clipboard" ) do
83
83
options [ :copy ] = true
84
84
end
85
- opts . on ( "-j " , "--copy-js " , "Copy the embed code for the gist to the clipboard" ) do
86
- options [ :copy_js ] = true
85
+ opts . on ( "-e " , "--embed " , "Copy the embed code for the gist to the clipboard" ) do
86
+ options [ :embed ] = true
87
87
options [ :copy ] = true
88
88
end
89
89
109
109
opts . parse!
110
110
111
111
begin
112
- options [ :output ] = if options [ :copy_js ] && options [ :shorten ]
113
- raise Jist ::Error , "--copy-js does not make sense with --shorten"
114
- elsif options [ :copy_js ]
112
+ options [ :output ] = if options [ :embed ] && options [ :shorten ]
113
+ raise Jist ::Error , "--embed does not make sense with --shorten"
114
+ elsif options [ :embed ]
115
115
:javascript
116
116
elsif options [ :shorten ]
117
117
:short_url
0 commit comments