mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-15 00:20:37 +03:00
main: Sort flags, unhide --unsafe-passphrase for now
This commit is contained in:
parent
adef8d65a2
commit
b9aa7a6a0c
@ -30,18 +30,16 @@ var Version string = "dev"
|
|||||||
|
|
||||||
// Options contains the flag options
|
// Options contains the flag options
|
||||||
type Options struct {
|
type Options struct {
|
||||||
Verbose []bool `short:"v" long:"verbose" description:"Show verbose logging."`
|
Admin string `long:"admin" description:"File of public keys who are admins."`
|
||||||
Version bool `long:"version" description:"Print version and exit."`
|
Bind string `long:"bind" description:"Host and port to listen on." default:"0.0.0.0:2022"`
|
||||||
Identity string `short:"i" long:"identity" description:"Private key to identify server with." default:"~/.ssh/id_rsa"`
|
Identity string `short:"i" long:"identity" description:"Private key to identify server with." default:"~/.ssh/id_rsa"`
|
||||||
Bind string `long:"bind" description:"Host and port to listen on." default:"0.0.0.0:2022"`
|
Log string `long:"log" description:"Write chat log to this file."`
|
||||||
Admin string `long:"admin" description:"File of public keys who are admins."`
|
Motd string `long:"motd" description:"Optional Message of the Day file."`
|
||||||
Whitelist string `long:"whitelist" description:"Optional file of public keys who are allowed to connect."`
|
Pprof int `long:"pprof" description:"Enable pprof http server for profiling."`
|
||||||
Motd string `long:"motd" description:"Optional Message of the Day file."`
|
Verbose []bool `short:"v" long:"verbose" description:"Show verbose logging."`
|
||||||
Log string `long:"log" description:"Write chat log to this file."`
|
Version bool `long:"version" description:"Print version and exit."`
|
||||||
Pprof int `long:"pprof" description:"Enable pprof http server for profiling."`
|
Whitelist string `long:"whitelist" description:"Optional file of public keys who are allowed to connect."`
|
||||||
|
Passphrase string `long:"unsafe-passphrase" description:"Require an interactive passphrase to connect. Whitelist feature is more secure."`
|
||||||
// Hidden flags, because they're discouraged from being used casually.
|
|
||||||
Passphrase string `long:"unsafe-passphrase" description:"Require an interactive passphrase to connect. Whitelist feature is more secure." hidden:"true"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const extraHelp = `There are hidden options and easter eggs in ssh-chat. The source code is a good
|
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:
|
|||||||
https://github.com/shazow/ssh-chat
|
https://github.com/shazow/ssh-chat
|
||||||
* Project Wiki FAQ:
|
* Project Wiki FAQ:
|
||||||
https://github.com/shazow/ssh-chat/wiki/FAQ
|
https://github.com/shazow/ssh-chat/wiki/FAQ
|
||||||
* Command Flags Declaration:
|
|
||||||
https://github.com/shazow/ssh-chat/blob/master/cmd/ssh-chat/cmd.go#L29
|
|
||||||
`
|
`
|
||||||
|
|
||||||
var logLevels = []log.Level{
|
var logLevels = []log.Level{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user