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

@@ -60,10 +60,13 @@ func pell(cmd *cobra.Command, args []string) {
// pellCmd represents the pell command
var pellCmd = &cobra.Command{
Use: "pell",
Use: "pell -d N",
Short: "Find solutions to a Pell equation",
Long: `Find solutions to a Pell equation x^2 - dy^2 = 1.`,
Run: pell,
Long: `Find integer solutions to a Pell equation x^2 - dy^2 = 1.
This will output solutions infinitely. Try piping to head to only output a certain number of solutions, like this:
mathtools pell -d 12 | head -n 5`,
Run: pell,
}
func init() {