fmt.Fprint(flag.CommandLine.Output(), `
By default all URLs are sorted by priority. If "cc"s are specified, then
sort by them with descending order. By specifying "!" before "cc", you
-inverse the order. If "cc" is "rand", then shuffle URLs.
+reverse the order. If "cc" is "rand", then shuffle URLs.
For specifying the region/continent use:
c:af -- Africa
c:an -- Antarctica
})
continue
}
- invert := false
+ reverse := false
if len(cc) > 0 && cc[0] == '!' {
- invert = true
+ reverse = true
cc = cc[1:]
slices.Reverse(urls)
}
cc = Continents[cc[2:]]
}
sort.Stable(ByCC{cc: cc, urls: urls})
- if invert {
+ if reverse {
slices.Reverse(urls)
}
}