Skip to content

Commit f91e9ad

Browse files
author
Artur Kh
committed
sort flags
1 parent f445075 commit f91e9ad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

go-gist.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ func main() {
5757
uid := flag.String("u", "", "Update an existing gist. Takes ID as an argument.")
5858
anonymousFlag := flag.Bool("a", false, "Create an anonymous gist.")
5959
copyFlag := flag.Bool("c", false, "Copy the resulting URL to the clipboard.")
60-
// -e --embed Copy the embed code for the gist to the clipboard.
6160
openFlag := flag.Bool("o", false, "Open the resulting URL in a browser.")
6261
pasteFlag := flag.Bool("P", false, "Paste from the clipboard to gist.")
6362
rawFlag := flag.Bool("R", false, "Display a raw URL of the new gist.")
@@ -76,7 +75,7 @@ func main() {
7675
} else if *versionFlag {
7776
fmt.Println("go-gist " + VERSION)
7877
} else {
79-
err = gist(*uid, *desc, *filetype, *filename, !*privateFlag, *anonymousFlag, *copyFlag, *pasteFlag, *rawFlag, *shortenFlag, *openFlag)
78+
err = gist(*uid, *desc, *filetype, *filename, !*privateFlag, *shortenFlag, *anonymousFlag, *copyFlag, *openFlag, *pasteFlag, *rawFlag)
8079
}
8180

8281
if err != nil {
@@ -139,7 +138,7 @@ func list() error {
139138
return nil
140139
}
141140

142-
func gist(uid, desc, filetype, filename string, public, anonymous, copyFlag, pasteFlag, rawFlag, shortenFlag, openFlag bool) error {
141+
func gist(uid, desc, filetype, filename string, public, shortenFlag, anonymous, copyFlag, openFlag, pasteFlag, rawFlag bool) error {
143142
var err error
144143
var clipboard *Clipboard
145144

0 commit comments

Comments
 (0)