Crates.io | alpha-counter-cli |
lib.rs | alpha-counter-cli |
version | 0.2.4 |
source | src |
created_at | 2022-05-15 11:52:29.542712 |
updated_at | 2024-10-18 22:07:27.766664 |
description | Alphabetic counter |
homepage | |
repository | https://github.com/qtfkwk/alpha-counter-cli |
max_upload_size | |
id | 587106 |
size | 12,814 |
alpha-counter-cli is a command line utility using the
alpha-counter
library to provide an
alphabetic counter as would be used for numbering appendices.
It provides the --kind
option to create counters using upper and lower ASCII
alphabets as well as any alphabet via the --alphabet
option.
Specify an alternate starting point via the --start
option.
Stop printing after 100 iterations, or define an alternate number via the
--take
option.
$ alpha-counter -V
alpha-counter 0.2.4
$ alpha-counter -h
Alphabetic Counter (A, B, C, ..., X, Y, Z, AA, AB, AC, ...)
Usage: alpha-counter [OPTIONS]
Options:
-k, --kind <KIND> Kind (upper, lower) [default: upper]
-s, --start <START> Start [default: 0]
-t, --take <TAKE> Take [default: 100]
-a, --alphabet <ALPHABET> Custom alphabet
-h, --help Print help
-V, --version Print version
$ alpha-counter
A
B
C
...
CT
CU
CV
$ alpha-counter --kind lower
a
b
c
...
ct
cu
cv
$ alpha-counter --start 23 --take 6
X
Y
Z
AA
AB
AC
$ alpha-counter --alphabet abc --take 10
a
b
c
aa
ab
ac
ba
bb
bc
ca