Remove redundant setting of cli.HelpFlag

The help flag is configured automatically by default already. We don't
need to redo that for every single service.

This also addresses one of the finding of "go race" (#4088)
This commit is contained in:
Ralf Haferkamp committed 2022-07-05 14:59:06 +02:00
1 parent 41226deab7
commit 4a09d8a948
31 files changed
-155

No files matched your search

-5
View File
@@ -25,10 +25,5 @@ func Execute() error {
)
}
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Usage: "Serve Graph API for oCIS",
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -34,11 +34,6 @@ func Execute(cfg *config.Config) error {
Usage: "Serve search API for oCIS",
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}
-5
View File
@@ -33,11 +33,6 @@ func Execute(cfg *config.Config) error {
Commands: GetCommands(cfg),
})
cli.HelpFlag = &cli.BoolFlag{
Name: "help,h",
Usage: "Show the help",
}
return app.Run(os.Args)
}