cut: -M is not a flag

This commit is contained in:
Saurabh Kushwah 2025-04-30 23:39:31 +05:30
parent fe28d5fe3a
commit fd4f955c6a
No known key found for this signature in database
GPG Key ID: 8E11E1DCD6CCE8D5

View File

@ -8,17 +8,17 @@ import (
var rootCmd = &cobra.Command{
Use: "cut",
Short: "remove sections from each line of files",
Long: "https://linux.die.net/man/1/cut",
Long: "https://man7.org/linux/man-pages/man1/cut.1.html",
Run: func(cmd *cobra.Command, args []string) {},
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
rootCmd.Flags().BoolS("M", "M", false, "from first to M'th (included) byte, character or field")
rootCmd.Flags().StringP("bytes", "b", "", "select only these bytes")
rootCmd.Flags().StringP("characters", "c", "", "select only these characters")
rootCmd.Flags().Bool("complement", false, "complement the set of selected bytes, characters")