CmdChart: Default value handling

- Added default value ('15') for 'rules.<type>.cell'.
- Corrected EINVAL and ERANGE handling inside Rule::getInteger.
- Made the error message for the above more specific.
- Added the '> 0' constraint to the man page.
This commit is contained in:
Paul Beckingham 2017-02-25 13:00:20 -05:00
parent 1ed8d8e07c
commit 848c6e33fc
3 changed files with 19 additions and 18 deletions

View file

@ -696,6 +696,7 @@ Determines how many minutes are represented by a single character cell, for the
charts.
A value of '15' means that an hour is represented by 60/15, or 4 character cells.
Suitable values are the divisors of 60 (30, 20, 15, 12, ...).
The value must be greater than '0'.
Default value is '15'.
Type is one of 'month', 'week', 'day'.