factor: updated to GNU coreutils 9.7

This commit is contained in:
Saurabh Kushwah 2025-04-26 16:29:42 +05:30
parent 8b579f0820
commit 10c2e66109
No known key found for this signature in database
GPG Key ID: 8E11E1DCD6CCE8D5

View File

@ -8,16 +8,18 @@ import (
var rootCmd = &cobra.Command{
Use: "factor",
Short: "factor numbers",
Long: "https://linux.die.net/man/1/factor",
Long: "https://man7.org/linux/man-pages/man1/factor.1.html",
Run: func(cmd *cobra.Command, args []string) {},
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
rootCmd.Flags().BoolP("exponents", "h", false, "print repeated factors in form p^e unless e is 1")
rootCmd.Flags().Bool("help", false, "display this help and exit")
rootCmd.Flags().Bool("version", false, "output version information and exit")
}