diff options
author | Adrian Kummerlaender | 2016-04-07 16:16:41 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2016-04-07 16:16:41 +0200 |
commit | 8ccbf252e3d3910081de920b2388204e425400c0 (patch) | |
tree | bccf24c94efe6c65601ee03fb6e64f052cb65416 /src/line_accumulator.h | |
parent | 43779dc2b4dffdc75b1b6ca90b49b1e24bbea0fb (diff) | |
download | justify-8ccbf252e3d3910081de920b2388204e425400c0.tar justify-8ccbf252e3d3910081de920b2388204e425400c0.tar.gz justify-8ccbf252e3d3910081de920b2388204e425400c0.tar.bz2 justify-8ccbf252e3d3910081de920b2388204e425400c0.tar.lz justify-8ccbf252e3d3910081de920b2388204e425400c0.tar.xz justify-8ccbf252e3d3910081de920b2388204e425400c0.tar.zst justify-8ccbf252e3d3910081de920b2388204e425400c0.zip |
Implement proper CLI argument handling using `boost::program_options`
Became necessary due to the introduction of custom line offset as an additional user-defined parameter.
Diffstat (limited to 'src/line_accumulator.h')
-rw-r--r-- | src/line_accumulator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/line_accumulator.h b/src/line_accumulator.h index 2ca271c..69b4c74 100644 --- a/src/line_accumulator.h +++ b/src/line_accumulator.h @@ -9,7 +9,7 @@ namespace justify { class LineAccumulator { public: - LineAccumulator(const std::uint8_t max_length); + LineAccumulator(const std::uint8_t max_length, const std::uint8_t offset); ~LineAccumulator(); std::uint8_t getMissing() const; @@ -18,6 +18,7 @@ class LineAccumulator { private: const std::uint8_t max_length_; + const std::uint8_t offset_; std::uint8_t length_; |