]> Kevux Git Server - fll/commit
Bugfix: The -t/--total in iki_read is confusing and allow for --total with --whole.
authorKevin Day <Kevin@kevux.org>
Sun, 8 Dec 2024 01:55:01 +0000 (19:55 -0600)
committerKevin Day <Kevin@kevux.org>
Sun, 8 Dec 2024 03:32:25 +0000 (21:32 -0600)
commite328a5f376c39d22028e7e8b7d473b4d2ef28a5e
tree6808eb907702aefae23dd590d98daa342019d873
parent12973b479e37de20be5a5659dfb26506f6b72c4c
Bugfix: The -t/--total in iki_read is confusing and allow for --total with --whole.

The `--total` parameter should print the total number of IKI Variables.
The `--line` parameter is selecting based on the line as if the `--whole` parameter is based (even when it is not).
This makes little sense when in the `--content` that is the default behavior.

This solves part of that confusion by focusing on the `--total` parameter.

Using the `--whole` should also print the total number of lines rather than total number of Variables.

I will need to follow this up with runtime tests.
There are none at this time so a separate commit is needed to add all of the appropriate tests.
level_3/iki_read/c/common.h
level_3/iki_read/c/iki_read.c
level_3/iki_read/c/private-read.c