48 Commits

Author SHA1 Message Date
Terts Diepraam 84008f952a add dd test 2023-11-01 13:11:22 +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 b1e7c9cba4 start writing some module documentation 2023-02-08 23:31:49 +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 0816cd9213 fix clippy lints 2023-02-06 13:48:35 +01:00
Terts Diepraam 2dbf88ffaa Add option for -{N} and +{N} args (closes #2) 2023-02-06 13:38:47 +01:00
Terts Diepraam c237b06cfc Allow help argument to option and multiple option attributes 2023-01-23 22:01:31 +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 d52c2c90d6 hidden arguments (closes #14) 2023-01-10 20:33:10 +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 ade68184ab clippy and rustfmt fixes 2022-12-29 16:26:13 +01:00
Terts Diepraam 4cca82fbbe infer values from unabiguous prefixes (closes #9) 2022-12-29 16:05:23 +01:00
Terts Diepraam 7455f3a3de trailing var args via last keyword 2022-12-20 12:46:36 +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