Komari Spaghetti
4c14bfd518
Modernize codebase
...
* Better naming for variables
* Follow naming style of enums
* Use `writer()` instead of `outStream()`
* Change many initializers to be a one liner
* Don't explicitly initialize fields to their default value
2021-05-08 18:08:52 +02:00
Komari Spaghetti
aa334d8c1d
Refactor Diagnostic (and others) into a ParseOption struct
...
This allows for default arguments, which we can also extend without
breaking peoples code in the future. This is a breaking change right now
though.
2021-04-28 16:59:30 +02:00
Jimmi Holst Christensen
db7525e307
Support all arguments after -- being positionals
2020-11-21 17:42:28 +01:00
Jimmi Holst Christensen
e83c036aba
Fix spelling error
2020-11-21 17:01:33 +01:00
Jimmi Holst Christensen
6fbacabb95
Implement ShellIterator
...
fixes #30
2020-11-21 16:57:09 +01:00
Jimmi Holst Christensen
b7e6ebf36e
Deprecate ComptimeClap in favor of parseEx
2020-11-10 18:53:57 +01:00
Jimmi Holst Christensen
cc0885a2fd
Better parseParam
2020-11-10 18:31:35 +01:00
Jimmi Holst Christensen
7f82f87c31
Improve Diagnostic error message reporting
2020-11-03 20:15:00 +01:00
Jimmi Holst Christensen
ba2530c3a7
Replace var
with anytype
2020-11-02 20:16:43 +01:00
Komari Spaghetti
42894f6c8b
Report error context in Diagnostic ( #26 )
2020-11-02 19:05:41 +01:00
Matthew Knight
44ee31e4bc
use null sentinel in OsIterator ( #27 )
2020-11-01 14:11:01 +01:00
Asherah Connor
8813e87832
reverse the order of these
2020-08-28 09:43:42 +02:00
Asherah Connor
e006791a7d
fix up
2020-08-28 09:43:42 +02:00
Asherah Connor
fc823f7a14
separate options into single and multiple
...
This avoids allocations if you never use multiple arguments.
2020-08-28 09:43:42 +02:00
Asherah Connor
08bab91e1e
parse and validate multiple option
2020-08-28 09:43:42 +02:00
Asherah Connor
c2ae653f51
parse multiple options
2020-08-28 09:43:42 +02:00
dbandstra
ffc5e241a6
update for latest zig
2020-03-01 21:32:15 -08:00
dbandstra
e9264d39cb
update for latest zig (typeOf was renamed)
2019-12-10 18:54:44 -08:00
dbandstra
2174a4a2e6
update for latest zig
2019-12-01 23:20:09 -08:00
Jimmi Holst Christensen
dc1431c208
Breaking: OsIterator will now get the exe on init
2019-11-09 13:12:34 +01:00
Jimmi Holst Christensen
f3eb797336
fmt, mv src/ clap/ and run fmt on build
2019-10-06 17:20:56 +02:00