Class ArgParser

java.lang.Object
me.thiagorigonatti.capitalgains.util.ArgParser

public class ArgParser extends Object
Utility class responsible for parsing command-line arguments and applying them to a TaxCalculator instance.

Supports the following flags:

  • -pel: Enables printing of the tax result for every line (Print Every Line).
  • -t: Enables timing measurements for the execution.
  • -bsi<size><unit>: Sets the input buffer size (e.g., -bsi512k, -bsi1m).
  • -bso<size><unit>: Sets the output buffer size (e.g., -bso1m, -bso2g).

Accepted units for buffer size: k (kilobytes), m (megabytes), g (gigabytes). The size must be a number from 1 to 999.

Since:
1.0