diff options
Diffstat (limited to 'args.go')
| -rw-r--r-- | args.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -13,6 +13,7 @@ const ProgramVersion = "1.0.0-alpha+dev" type args struct { Radix uint Compact bool + FullMap bool // If true, exit the program immediately after parsing args. Exit bool } @@ -20,6 +21,9 @@ type args struct { func parseArgs() (args, error) { var a args flag.BoolVar(&a.Compact, "c", false, "Compact the output display") + flag.BoolVar(&a.FullMap, "f", false, + fmt.Sprintf("Show full digit map (up to %d) for every radix", + maxSmallRadix)) help := flag.Bool("?", false, "Get information about program usage then exit") version := flag.Bool("V", false, |
