forked from subutai-io/p2p
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.go
32 lines (26 loc) · 997 Bytes
/
help.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package main
import (
"fmt"
)
func usageDaemon() {
fmt.Printf("p2p network running on the same machine are controlled by daemon. \n" +
"Daemon should be started by privileged user, because process will attempt to \n" +
"create new virtual network interfaces (tap). \n" +
"When running p2p in daemon mode it will listen to a particular port specified by optional -port \n" +
"argument (Default: 52523) for local RPC connection and wait for commands from p2p client (same \n" +
"application, but without daemon command)\n\n")
fmt.Printf("Usage: p2p daemon [OPTIONS]:\n")
}
func usageStart() {
fmt.Printf("start command allows user to run new p2p instance. This command executes start procedure in a daemon.\n\n")
fmt.Printf("Usage: p2p start [-ip IP] [-hash HASH] [OPTIONS]:\n")
}
func usageStop() {
fmt.Printf("Usage: p2p stop -hash HASH:\n")
}
func usageShow() {
fmt.Printf("Usage: p2p show [-hash HASH]:\n")
}
func usageSet() {
fmt.Printf("Usage: p2p set [OPTIONS]:\n")
}