16 lines
775 B
Go
16 lines
775 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"flag"
|
||
|
)
|
||
|
|
||
|
func readFlags() {
|
||
|
flag.StringVar(&serverAddrString, `server`, `127.0.0.1:22`, `The (remote) SSH server, e.g. 'my.host.com', 'my.host.com:22', '127.0.0.1:22', 'localhost:22'.`)
|
||
|
flag.StringVar(&username, `user`, `username`, `The user's name for the SSH server.`)
|
||
|
flag.StringVar(&password, `pwd`, ``, `The user's password for the SSH server. You can omit these argument. Thus, the program asks for the password on demand.`)
|
||
|
flag.StringVar(&localDir, `localDir`, ``, `The local directory which should be synced.`)
|
||
|
flag.StringVar(&remoteDir, `remoteDir`, ``, `The remote directory which should be synced.`)
|
||
|
flag.BoolVar(&supervised, `supervised`, true, `Use the supervised mode? The algorithm asks you before any change.`)
|
||
|
flag.Parse()
|
||
|
}
|