Commit Graph

45 Commits

Author SHA1 Message Date
Terts Diepraam cc9ce1ea50 remove 'static lifetime
This is probably an old remnant, but it is no longer necessary
2023-12-15 23:42:24 +01:00
Terts Diepraam 19cf7bd421 rename default to value 2023-12-07 12:51:30 +01:00
Terts Diepraam 2ba46a2ae9 remove the Initial trait 2023-12-05 16:05:59 +01:00
Terts Diepraam e6a7f379bf unify the option/positional/free attributes into arg 2023-12-03 14:22:42 +01:00
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 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 9ca3236835 rustfmt fix 2023-03-14 16:50:51 +01:00
Terts Diepraam 946728596b Fix tests for new initial macro 2023-03-08 16:06:40 +01: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 dad3efc07d fix up head and tail 2023-02-17 00:44:47 +01:00
Terts Diepraam 6b8f1a5ac1 add tests for head 2023-02-17 00:37:24 +01:00
Terts Diepraam 9d40a129ee update tail tests for more compatibility 2023-02-15 18:21:27 +01:00
Terts Diepraam 08c0383cb9 move Arg from associated type to type parameter
This allows a struct to implement Options for multiple types. See the tail test for rationale
2023-02-15 14:53:29 +01:00
Terts Diepraam 8616b87f58 add test for tail shorthand 2023-02-14 15:08:41 +01:00
Terts Diepraam c4021602f8 remove dev-dependencies for ls test 2023-02-14 01:17:10 +01:00
Terts Diepraam 2565a99011 refactor value parsing 2023-02-14 00:51:27 +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 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 5d24e860a1 add ignore patterns to ls test 2023-01-04 00:02:54 +01:00
Terts Diepraam 744c729605 add ls tests 2023-01-03 19:06:35 +01:00