@@ -30,18 +30,16 @@ var Version string = "dev"
30
30
31
31
// Options contains the flag options
32
32
type Options struct {
33
- Verbose []bool `short:"v" long:"verbose" description:"Show verbose logging."`
34
- Version bool `long:"version" description:"Print version and exit."`
35
- Identity string `short:"i" long:"identity" description:"Private key to identify server with." default:"~/.ssh/id_rsa"`
36
- Bind string `long:"bind" description:"Host and port to listen on." default:"0.0.0.0:2022"`
37
- Admin string `long:"admin" description:"File of public keys who are admins."`
38
- Whitelist string `long:"whitelist" description:"Optional file of public keys who are allowed to connect."`
39
- Motd string `long:"motd" description:"Optional Message of the Day file."`
40
- Log string `long:"log" description:"Write chat log to this file."`
41
- Pprof int `long:"pprof" description:"Enable pprof http server for profiling."`
42
-
43
- // Hidden flags, because they're discouraged from being used casually.
44
- Passphrase string `long:"unsafe-passphrase" description:"Require an interactive passphrase to connect. Whitelist feature is more secure." hidden:"true"`
33
+ Admin string `long:"admin" description:"File of public keys who are admins."`
34
+ Bind string `long:"bind" description:"Host and port to listen on." default:"0.0.0.0:2022"`
35
+ Identity string `short:"i" long:"identity" description:"Private key to identify server with." default:"~/.ssh/id_rsa"`
36
+ Log string `long:"log" description:"Write chat log to this file."`
37
+ Motd string `long:"motd" description:"Optional Message of the Day file."`
38
+ Pprof int `long:"pprof" description:"Enable pprof http server for profiling."`
39
+ Verbose []bool `short:"v" long:"verbose" description:"Show verbose logging."`
40
+ Version bool `long:"version" description:"Print version and exit."`
41
+ Whitelist string `long:"whitelist" description:"Optional file of public keys who are allowed to connect."`
42
+ Passphrase string `long:"unsafe-passphrase" description:"Require an interactive passphrase to connect. Whitelist feature is more secure."`
45
43
}
46
44
47
45
const extraHelp = `There are hidden options and easter eggs in ssh-chat. The source code is a good
@@ -51,8 +49,6 @@ place to start looking. Some useful links:
51
49
https://github.com/shazow/ssh-chat
52
50
* Project Wiki FAQ:
53
51
https://github.com/shazow/ssh-chat/wiki/FAQ
54
- * Command Flags Declaration:
55
- https://github.com/shazow/ssh-chat/blob/master/cmd/ssh-chat/cmd.go#L29
56
52
`
57
53
58
54
var logLevels = []log.Level {
0 commit comments