Updated transitive dependencies
This commit is contained in:
parent
75abffda62
commit
afd2c8acd7
15
cmd/root.go
15
cmd/root.go
|
@ -13,7 +13,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
ReleaseVersion string = "3.4.2"
|
||||
ReleaseVersion string = "3.4.3"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -52,6 +52,17 @@ var (
|
|||
Version bool
|
||||
Videos bool
|
||||
|
||||
RequiredArgs = []string{
|
||||
"all",
|
||||
"audio",
|
||||
"code",
|
||||
"fallback",
|
||||
"flash",
|
||||
"images",
|
||||
"text",
|
||||
"video",
|
||||
}
|
||||
|
||||
rootCmd = &cobra.Command{
|
||||
Use: "roulette <path> [path]...",
|
||||
Short: "Serves random media from the specified directories.",
|
||||
|
@ -132,7 +143,7 @@ func init() {
|
|||
|
||||
rootCmd.Flags().SetInterspersed(true)
|
||||
|
||||
rootCmd.MarkFlagsOneRequired("all", "audio", "code", "fallback", "flash", "images", "text", "video")
|
||||
rootCmd.MarkFlagsOneRequired(RequiredArgs...)
|
||||
|
||||
rootCmd.SetHelpCommand(&cobra.Command{
|
||||
Hidden: true,
|
||||
|
|
Loading…
Reference in New Issue