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

@@ -48,10 +48,12 @@ func modInverse(cmd *cobra.Command, args []string) {
// modInverseCmd represents the modInverse command
var modInverseCmd = &cobra.Command{
Use: "mod-inverse",
Use: "mod-inverse -g N -m N",
Short: "Compute a modular inverse",
Long: `Compute a modular inverse.`,
Run: modInverse,
Long: `Compute a modular inverse.
Given a base g and modulus m, compute a value x such that gx = 1 (mod m). A solution only exists if g and m are coprime.`,
Run: modInverse,
}
func init() {