Commit Graph

41 Commits

Author SHA1 Message Date
Terts Diepraam d3ec7cd308 add license headers and LICENSE file for derive 2023-11-30 11:20:20 +01:00
Terts Diepraam 6c16203db6 dd-style and numeric arguments 2023-11-01 12:26:03 +01:00
Terts Diepraam 2f1a9b0ed0 rewrite attribute parsing 2023-06-06 17:26:10 +02:00
Terts Diepraam fa5ae87c35 migrate to syn 2.0 2023-06-05 01:14:44 +02:00
Terts Diepraam 0d7c1b747f remove markdown rendering and make help write to stdout
The markdown rendering is too complicated at the moment
and slows the rest of development down too much. We can
add it back in later.

The generated code for the help string now writes
directly to stdout, instead of building up a String,
this leads to nicer code and is probably faster.
2023-06-04 14:09:07 +02:00
Terts Diepraam f08e8aa42f Refactor the initial macro a bit 2023-03-08 16:00:18 +01:00
Terts Diepraam bf4bac54b7 Rework initial macro (part of #20) 2023-03-08 15:12:19 +01:00
Terts Diepraam 2565a99011 refactor value parsing 2023-02-14 00:51:27 +01:00
Terts Diepraam d9ca915139 document more of the public API 2023-02-13 18:09:34 +01:00
Terts Diepraam af70102ec5 support echo style parsing (where invalid arguments become positional arguments) 2023-02-08 22:45:53 +01:00
Terts Diepraam 2dbf88ffaa Add option for -{N} and +{N} args (closes #2) 2023-02-06 13:38:47 +01:00
Terts Diepraam 065eb17b19 remove Options derive in favor of manual implementation 2023-01-19 16:57:11 +01:00
Terts Diepraam dd5c3efc34 add exit code and arguments attribute (closes #13) 2023-01-10 21:32:17 +01:00
Terts Diepraam 3d46072398 fix from_value to consider prefixes per variant 2023-01-03 18:58:06 +01:00
Terts Diepraam 8167c9670f add field attribute with default and env var 2022-12-29 18:24:32 +01:00
Terts Diepraam 4cca82fbbe infer values from unabiguous prefixes (closes #9) 2022-12-29 16:05:23 +01:00
Terts Diepraam 02bceaa5ec move version_handling to help module 2022-12-20 12:22:35 +01:00
Terts Diepraam 830f391359 add option for text below options 2022-12-18 19:14:21 +01:00
Terts Diepraam fc89ea3284 start reading help file file 2022-12-18 16:28:44 +01:00
Terts Diepraam c911d35821 remove set_true and set_false attributes in favor of the map attribute 2022-12-15 00:08:48 +01:00
Terts Diepraam 870c1d2f29 better handling of option arguments 2022-12-14 23:56:43 +01:00
Terts Diepraam 58bbbfe6f4 add version flags and refactor all flag handling with a Flags struct 2022-12-10 20:43:15 +01:00
Terts Diepraam f1f4ee9eec add a simple usage string to the help output 2022-12-10 17:47:56 +01:00
Terts Diepraam 5eccb3d824 add --help to long arg inference 2022-12-10 17:04:14 +01:00
Terts Diepraam ad6d1d677c allow changing the help flags 2022-12-10 16:50:59 +01:00