diff options
Diffstat (limited to 'args.go')
| -rw-r--r-- | args.go | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -27,12 +27,13 @@ const ProgramVersion = "1.0.0-rc.1" // The arguments to this program type args struct { - Radix uint - Compact bool - FullMap bool - ExactMTCLarge bool - TotativeDigits bool - DigitMapOnly bool + Radix uint + Compact bool + FullMap bool + ExactMTCLarge bool + TotativeDigits bool + DigitMapOnly bool + LogRegularComplexities bool // If true, exit the program immediately after parsing args. Exit bool } @@ -45,6 +46,8 @@ func parseArgs() (args, error) { flag.BoolVar(&a.FullMap, "f", false, fmt.Sprintf("Show full digit map (up to %d) for every radix", maxSmallRadix)) + flag.BoolVar(&a.LogRegularComplexities, "l", false, + "Show the base-2 logarithm of the regular complexities") flag.BoolVar(&a.ExactMTCLarge, "m", false, fmt.Sprintf("Calculate exact MTC for very large radices (up to %d instead of %d), which may take a while.", maxExtended, maxNormal)) |
