mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
factor: updated to GNU coreutils 9.7
This commit is contained in:
parent
8b579f0820
commit
10c2e66109
@ -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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user