From 963435c65718fb8857657b14d88fb0c898df174a Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 25 Dec 2025 23:50:17 -0500 Subject: [PATCH] fix: cli.CLIOptions is repetitive --- internal/cli/arguments.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cli/arguments.go b/internal/cli/arguments.go index 5249317..5f8eb5a 100644 --- a/internal/cli/arguments.go +++ b/internal/cli/arguments.go @@ -6,7 +6,7 @@ import ( ) // Arguments given to program. -type CLIOptions struct { +type Options struct { // The source code given to the program. Input string // Whether or not to print debug logs. @@ -16,7 +16,7 @@ type CLIOptions struct { } // Extract the program configuration from the command-line arguments. -func ParseOptions() (*CLIOptions, error) { +func ParseOptions() (*Options, error) { // Parse flags. verbose := flag.Bool("v", false, "Verbosity. If set, the program will print logs.") explanation := flag.Bool("x", false, "Explanation. Whether or not to show all reduction steps.") @@ -29,7 +29,7 @@ func ParseOptions() (*CLIOptions, error) { return nil, fmt.Errorf("More than 1 command-line argument.") } - return &CLIOptions{ + return &Options{ Input: flag.Arg(0), Verbose: *verbose, Explanation: *explanation,