Repository navigation
20261022 (v0.10.0)
ArgMojo v0.10.0 update the codebase to Mojo v1.2.0. The new compiler also fixes the deadlock that kept response files disabled since v0.4.0, so @args.txt expansion now works. The deprecated alias_name spellings are removed.
⭐️ New in v0.10.0
- Response files are enabled (PR #64). After
command.response_file_prefix(),myapp @args.txtreads arguments fromargs.txt, one per line, with#comments,@@escaping and nested response files up toresponse_file_max_depth[N]()(default 10). See the user manual.
🦋 Changed in v0.10.0
- Remove
.alias_name[]()and thealias_name=parameter ofOption,FlagandCount, deprecated in v0.9.0 (PR #64). To migrate, replace.alias_name[with.alias[andalias_name=withalias=.
🔄 Mojo v1.2.0 migration (PR #64)
- Update the Mojo dependency to
>=1.2.0, <1.3.0. Parsableno longer defines its own default__init__. Mojo v1.2.0 givesDefaultablea default__init__that default-constructs each field via reflection, which clashed withParsable's own reflection-based one: everyParsablestruct failed with "conflicting default implementations in 'Parsable' and 'Defaultable'".Parsablenow uses the inherited one, and conforming structs still need no__init__. A field whose type is notDefaultableis reported by the compiler.
🔧 Fixes in v0.10.0
- A program that used ArgMojo together with the standard library's file I/O (for example
open(path).read()) failed to compile on Mojo v1.2.0 with "existing function with conflicting signature". The*-echo password prompt declared libcreadthroughexternal_call, and Mojo v1.2.0's standard library declaresreadwith a different signature. The prompt now reads throughRawFileDescriptor.read_bytes()(PR #64).