clarify that commas are needed

This commit is contained in:
filifa 2025-09-06 21:19:18 -04:00
parent 4978ec7834
commit 96fe7b14af
1 changed files with 2 additions and 2 deletions

View File

@ -61,13 +61,13 @@ func crt(cmd *cobra.Command, args []string) {
// crtCmd represents the crt command // crtCmd represents the crt command
var crtCmd = &cobra.Command{ var crtCmd = &cobra.Command{
Use: "crt -r R R [R ...] -m M M [M ...]", Use: "crt -r R,R,[R, ...] -m M,M,[M, ...]",
Short: "Solve a system of linear congruences with the Chinese remainder theorem", 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. 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, 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 mathtools crt -r 2,3,2 -m 3,5,7
will solve the system of congruences will solve the system of congruences
x = 2 (mod 3) x = 2 (mod 3)