small fixes on application help page, removing an unused variable

master
Carlo Strub 7 years ago
parent 1df45dc7b3
commit 93a4eb1a31

@ -24,12 +24,15 @@ func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = "Sisyphus" app.Name = "Sisyphus"
app.Usage = "Intelligent Junk Mail Handler" app.Usage = "Intelligent Junk Mail Handler"
app.UsageText = `sisyphus [global options] command [command options] app.UsageText = `sisyphus [GLOBAL OPTIONS] command
Sisyphus applies artificial intelligence to filter Sisyphus applies artificial intelligence to filter
Junk mail in an unobtrusive way. Both, classification and learning Junk mail in an unobtrusive way. Both, classification and learning
operate directly on the Maildir of a user in a fully transparent mode, operate directly on the Maildir of a user in a fully transparent mode,
without any need for configuration or active operation.` without any need for configuration or active operation.
It is highly recommended to operate Sisyphus by setting environment
variables for the global options instead of using flags.`
app.HelpName = "Intelligent Junk Mail Handler" app.HelpName = "Intelligent Junk Mail Handler"
app.Version = version app.Version = version
app.Copyright = "(c) 2017, Carlo Strub. All rights reserved. This binary is licensed under a BSD 3-Clause License." app.Copyright = "(c) 2017, Carlo Strub. All rights reserved. This binary is licensed under a BSD 3-Clause License."
@ -42,9 +45,6 @@ func main() {
maildirPaths := cli.StringSlice([]string{}) maildirPaths := cli.StringSlice([]string{})
var pidfile *string
pidfile = new(string)
var learnafter *string var learnafter *string
learnafter = new(string) learnafter = new(string)
@ -56,13 +56,6 @@ func main() {
EnvVar: "SISYPHUS_DIRS", EnvVar: "SISYPHUS_DIRS",
Usage: "Call multiple Maildirs by repeating this flag, i.e. --maildir \"./Maildir\" --maildir \"./Maildir2\"", Usage: "Call multiple Maildirs by repeating this flag, i.e. --maildir \"./Maildir\" --maildir \"./Maildir2\"",
}, },
cli.StringFlag{
Name: "pidfile, p",
Value: "/tmp/sisyphus.pid",
EnvVar: "SISYPHUS_PID",
Usage: "Location of PID file",
Destination: pidfile,
},
cli.StringFlag{ cli.StringFlag{
Name: "learn", Name: "learn",
Value: "12h", Value: "12h",
@ -188,7 +181,7 @@ func main() {
{ {
Name: "stats", Name: "stats",
Aliases: []string{"i"}, Aliases: []string{"i"},
Usage: "Statistics from Sisyphus", Usage: "show statistics",
Action: func(c *cli.Context) error { Action: func(c *cli.Context) error {
log.Info("here, we should get statistics from the db, TBD...") log.Info("here, we should get statistics from the db, TBD...")
return nil return nil

Loading…
Cancel
Save