From 9fbabbc08c8fa066ca6adbb304dc846feb89fcad Mon Sep 17 00:00:00 2001 From: filifa Date: Mon, 18 Aug 2025 22:17:04 -0400 Subject: [PATCH] expand help text --- cmd/crt.go | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/cmd/crt.go b/cmd/crt.go index 35bdac1..50d7438 100644 --- a/cmd/crt.go +++ b/cmd/crt.go @@ -113,9 +113,19 @@ func crt(cmd *cobra.Command, args []string) { // crtCmd represents the crt command var crtCmd = &cobra.Command{ Use: "crt -r R R [R ...] -m M M [M ...]", - Short: "Solve a system of linear congruences", - Long: `Solve a system of linear congruences.`, - Run: crt, + Short: "Solve a system of linear congruences with the Chinese remainder theorem", + Long: `Solve a system of linear congruences by applying the Chinese remainder theorem. + +To use, provide the remainder R of each congruence, along with the corresponding modulus M for each congruence. For instance, + +mathtools crt -r 2 3 2 -m 3 5 7 + +will solve the system of congruences +x = 2 (mod 3) +x = 3 (mod 5) +x = 2 (mod 7) +`, + Run: crt, } func init() {