Add manual page and set default instance to the main one.
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/suwako/trunk@17 0b558ee1-521d-8b46-a41b-40029c97c055
This commit is contained in:
@@ -39,9 +39,9 @@ func main() {
|
||||
|
||||
if len(engine) == 0 || len(instance) == 0 {
|
||||
log.Println("SUWAKO_ENGINE and/or SUWAKO_INSTANCE are unset")
|
||||
log.Println("Defaulting to translate.chaotic.ninja with engine 'google'")
|
||||
log.Println("Defaulting to simplytranslate.org with engine 'google'")
|
||||
engine = "google"
|
||||
instance = "https://translate.chaotic.ninja"
|
||||
instance = "https://simplytranslate.org"
|
||||
}
|
||||
if len(input) == 0 {
|
||||
log.Fatal("Missing input text.")
|
||||
|
||||
Reference in New Issue
Block a user