Repository navigation
Releases
mojo-args v0.1.4
mojo-args-public v0.1.4
Released: 2026-11-08 · Commit: 2a971a4 · Previous: v0.1.3
What it does
Command-line parsing for Mojo with Python argparse's behaviour: sub-commands, typed and repeatable options, a remainder command, prefix abbreviation, and argparse's own usage-error messages.
Highlights
- Packaging only: the conda recipe pins
mojo-compilerto the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on.
Changes
Changed
recipe.yaml:mojo-compilerrun dependency pinned to the build's minor (<1.3.0a0).
Verified
| Check | Result |
|---|---|
pkg-conda dry run on the version commit (H1-H3,H6) |
PASS: mojo-args-0.1.4-hb0f4dca_0.conda |
Known limits
- Packages are built on one Mojo minor only; see the package protocol.
Upgrade / run
None: no API change.
Commits
2a971a4build: bump version to 0.1.45cb02afbuild: recipe pins mojo-compiler to the build's minor
mojo-args v0.1.3
mojo-args-public v0.1.3
Released: 2026-11-07 · Tag: v0.1.3 · Previous: v0.1.2
What it does
Command-line parsing for Mojo with Python argparse's behaviour: sub-commands, typed and repeatable options, a remainder command, prefix abbreviation, and argparse's own usage-error messages.
Highlights
- Docs only: CHANGELOG names no home path.
Changes
Changed
CHANGELOG.mdand the release notes name no home path.
Verified
| Check | Result |
|---|---|
mojo-lib-audit on this tree |
PASS |
gh-publish --check (ci-local) |
OK |
Known limits
- As in v0.1.2.
Upgrade / run
None: no code or API change.
Commits
git log v0.1.2..v0.1.3
mojo-args v0.1.2
mojo-args v0.1.2
Released: 2026-11-04 · Commit: d149e10 · Previous: v0.1.1
What it does
Command-line parsing for Mojo with Python argparse's behaviour: sub-commands, typed and repeatable options, a remainder command, prefix abbreviation, and argparse's own usage-error messages.
Highlights
-éor-q\xffon the command line no longer aborts the process.- Builds on the Mojo 1.3 nightly as well as 1.2.0.
Changes
Added
- Conda recipe (
recipe.yaml). - README install and quickstart block, one example, and badges for CI, latest release and license.
Fixed
- A multi-byte or invalid UTF-8 byte after a dash no longer aborts the parser; the arguments parse as the Python
argparseoracle does. ArgumentParserbuilds on Mojo 1.3.0.dev2026110305 (explicit empty__deinit__); it still builds on 1.2.0.
Verified
| Check | Result |
|---|---|
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container |
PASS |
Known limits
- As in v0.1.1.
Upgrade / run
uv sync
Commits
d149e10fix(release): pyproject.toml, recipe.yaml and uv.lock say 0.1.22163706fix: build on Mojo 1.3 nightlydc1fa0fbuild: conda recipe74546a3docs: one example, one install block24bc621docs: install and quickstart blockc0bc5b0fix(parser): no abort on a multi-byte or invalid UTF-8 byte after a dash14eb242fix(release): pyproject and uv.lock say 0.1.1, the version of the latest tagb9968a9docs: CI, latest-release and license badges
mojo-args v0.1.1
mojo-args v0.1.1
Released: 2026-10-29 · Commit: 3930214 · Previous: v0.1.0
What it does
Command-line parsing for Mojo with Python argparse's behaviour: sub-commands, typed and repeatable options, a remainder command, prefix abbreviation, and argparse's own usage-error messages.
Highlights
- Builds and runs on the stable Mojo 1.2.0 release.
Changes
Changed
- The pin moves to Mojo 1.2.0 (
pyproject.toml,uv.lock); README and skill say Mojo 1.2.
Verified
| Check | Result |
|---|---|
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container, Mojo 1.2.0 |
PASS |
Known limits
- As in v0.1.0.
Upgrade / run
uv sync # installs Mojo 1.2.0
Commits
3930214build: Mojo 1.2.02ad485adocs: NOTICE names the owner and contact
mojo-args v0.1.0
mojo-args v0.1.0
Released: 2026-10-21 · Commit: 7353d4b · Previous: first release
What it does
Command-line parsing for Mojo with Python argparse's behaviour: sub-commands, typed and repeatable options, a remainder command, prefix abbreviation, and argparse's own usage-error messages.
Highlights
- Same parse results and the same usage-error text as Python argparse on 75 argv cases, 34 of them errors.
- argparse's quirks included: unique-prefix abbreviation, ambiguous-prefix errors,
--kept by a remainder,--opt=value, bundled short flags. - 13x faster than argparse: 200k parses in 252 to 259 ms vs 3,346 to 3,367 ms; building a parser takes 0.05 ms vs 11.3 ms.
Changes
First public release, no earlier version.
Verified
| Check | Result |
|---|---|
scripts/check.sh: 75 argv cases vs Python 3.14 argparse, plus api test, example and a real process (exit 2, stderr) |
PASS all |
scripts/ci.sh on a pristine Ubuntu 24.04.5 VM (installs CPython 3.14.8) |
PASS all |
| two mutants (a changed message, a broken remainder) | both fail the gate |
Known limits
--helpoutput is simple and not checked against argparse.- A sub-command usage error prints the top-level usage line, where argparse prints the sub-command's.
- Integers are Int64, ASCII digits only.
Upgrade / run
git clone https://github.com/amarbaro/mojo-args && cd mojo-args && uv sync
mojo run -I src examples/quickstart.mojo
Commits
7353d4bbuild: uv.lock (mojo 1.1.0)91a4661ci(args): GitHub Actions runs scripts/ci.sh with Python 3.14 as the oracle7f610fedocs(args): README with numbers and limits, api.md, design.md, agent skill2198e6ebench(args): 200k parses of the gpu-wait parser, 13x faster than argparseeeed809feat(args): argparse-compatible parser for Mojo, 75 cases identical to Pythoncfc3708test(args): argparse oracle on gpu-wait's parser shape, 23 argv cases1df9997chore: repo layout, Apache-2.0, mojo>=1.1