Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Releases

mojo-args v0.1.4

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:00

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-compiler to 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-compiler run 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

  • 2a971a4 build: bump version to 0.1.4
  • 5cb02af build: recipe pins mojo-compiler to the build's minor

mojo-args v0.1.3

Choose a tag to compare

@amarbarosys amarbarosys released this 07 Nov 14:40

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.md and 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

Upgrade / run

None: no code or API change.

Commits

git log v0.1.2..v0.1.3

mojo-args v0.1.2

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 14:36

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\xff on 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 argparse oracle does.
  • ArgumentParser builds 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

Upgrade / run

uv sync

Commits

  • d149e10 fix(release): pyproject.toml, recipe.yaml and uv.lock say 0.1.2
  • 2163706 fix: build on Mojo 1.3 nightly
  • dc1fa0f build: conda recipe
  • 74546a3 docs: one example, one install block
  • 24bc621 docs: install and quickstart block
  • c0bc5b0 fix(parser): no abort on a multi-byte or invalid UTF-8 byte after a dash
  • 14eb242 fix(release): pyproject and uv.lock say 0.1.1, the version of the latest tag
  • b9968a9 docs: CI, latest-release and license badges

mojo-args v0.1.1

Choose a tag to compare

@amarbarosys amarbarosys released this 29 Oct 21:10

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

Upgrade / run

uv sync   # installs Mojo 1.2.0

Commits

  • 3930214 build: Mojo 1.2.0
  • 2ad485a docs: NOTICE names the owner and contact

mojo-args v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 21 Oct 07:18

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

  • --help output 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

  • 7353d4b build: uv.lock (mojo 1.1.0)
  • 91a4661 ci(args): GitHub Actions runs scripts/ci.sh with Python 3.14 as the oracle
  • 7f610fe docs(args): README with numbers and limits, api.md, design.md, agent skill
  • 2198e6e bench(args): 200k parses of the gpu-wait parser, 13x faster than argparse
  • eeed809 feat(args): argparse-compatible parser for Mojo, 75 cases identical to Python
  • cfc3708 test(args): argparse oracle on gpu-wait's parser shape, 23 argv cases
  • 1df9997 chore: repo layout, Apache-2.0, mojo>=1.1