add more help text

This commit is contained in:
filifa
2025-09-17 21:02:05 -04:00
parent 4b4858c54f
commit 9e6f648f0b
14 changed files with 126 additions and 42 deletions

View File

@@ -63,10 +63,12 @@ func totient(cmd *cobra.Command, args []string) {
// totientCmd represents the totient command
var totientCmd = &cobra.Command{
Use: "totient",
Use: "totient -n N",
Short: "Compute the totient function for all numbers less than n",
Long: `Compute the totient function for all numbers less than n.`,
Run: totient,
Long: `Compute the totient function for all numbers less than n.
The totient function phi(n) counts the numbers up to n that are coprime to n.`,
Run: totient,
}
func init() {