From 51abf9139b9bbef41631dfdb8eda4961a136da93 Mon Sep 17 00:00:00 2001 From: filifa Date: Wed, 20 Aug 2025 00:56:56 -0400 Subject: [PATCH] write more help text --- cmd/primitiveRoot.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cmd/primitiveRoot.go b/cmd/primitiveRoot.go index 49443ee..3bf640e 100644 --- a/cmd/primitiveRoot.go +++ b/cmd/primitiveRoot.go @@ -140,8 +140,12 @@ func primitiveRoot(cmd *cobra.Command, args []string) { var primitiveRootCmd = &cobra.Command{ Use: "primitive-root -m M", Short: "Compute a primitive root modulo n", - Long: `Compute a primitive root modulo n.`, - Run: primitiveRoot, + Long: `Compute a primitive root modulo n. + +This command computes a value g such that, for all integers a coprime to n, g^k = a (mod n) for some k. In other words, this command computes a generator for the multiplicative group of integers modulo n. + +For improved performance, provide the prime factorization of the totient of n with the -t flag.`, + Run: primitiveRoot, } func init() {