bemoji/test
Marty Oehme d44cbf5b74
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add long-form option parsing
So far we could only add single-letter (POSIX) options: `-e`, `-n` and
so forth. Since we will run out of alphabet at some point, this commit
introduces parsing of multi-letter long-form (gnu) options (plus any
modern application should really support it anyways):
`--echo`, `--noline`.

Additionally, we support supplying long-form options that supply a value
both in the spaced (`--hist-limit 0`) and the equals (`--hist-limit=0`)
forms. Short, long, spaced, equals can be mixed and matched between
freely.

Lastly, we retain the ability to concatenate short options as before
(`-ne` is valid, as is `-P0` for the respective options above).

This should cover all bases and does not complicate the code too much to
keep a coherent overview.

Changed several code samples in the documentation to make
use of short- or long-form options to point out
possibility.
2023-08-26 14:37:44 +02:00
..
bats@26c9b18983 🧪 Add simple test framework 2022-06-29 12:35:52 +02:00
resources 🧪 Set up default emoji list for tests 2022-06-29 12:37:13 +02:00
test_helper 🦊 Change download option to work multiple times (#16) 2022-11-10 16:05:23 +01:00
bemoji_cmds.bats Add long-form option parsing 2023-08-26 14:37:44 +02:00
bemoji_directories.bats 🦊 BREAKING: Use new XDG Base specification for state (#5) 2022-11-19 15:03:14 +01:00
bemoji_download.bats Add ability to download nerdfont symbols (#10) 2023-05-01 16:03:09 +02:00
bemoji_history.bats BREAKING: Add ability to limit recent emoji shown (#1) 2023-04-30 18:22:44 +02:00