fix cutup cmd flags
This commit is contained in:
parent
c66dbaf013
commit
de1772462f
12
cmd/cutup.go
12
cmd/cutup.go
@ -8,13 +8,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.Flags().StringP("cutupdir", "d", "", "directory in which to write phrase files")
|
cutupCmd.Flags().StringP("cutupdir", "d", "", "directory in which to write phrase files")
|
||||||
rootCmd.Flags().StringP("srcdir", "s", "", "directory of files to cut up")
|
cutupCmd.Flags().StringP("srcdir", "s", "", "directory of files to cut up")
|
||||||
rootCmd.Flags().IntP("workers", "w", 10, "number of workers to use when cutting up")
|
cutupCmd.Flags().IntP("workers", "w", 10, "number of workers to use when cutting up")
|
||||||
rootCmd.Flags().StringP("flavor", "f", "", "set of adapters to use when cutting up")
|
cutupCmd.Flags().StringP("flavor", "f", "", "set of adapters to use when cutting up")
|
||||||
|
|
||||||
rootCmd.MarkFlagRequired("cutupdir")
|
cutupCmd.MarkFlagRequired("cutupdir")
|
||||||
rootCmd.MarkFlagRequired("srcdir")
|
cutupCmd.MarkFlagRequired("srcdir")
|
||||||
|
|
||||||
rootCmd.AddCommand(cutupCmd)
|
rootCmd.AddCommand(cutupCmd)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user