Skip to content

[cli] Allow negative numbers + add range, value name, argument group validation + custom usage line#201

Merged
forfudan merged 4 commits intodevfrom
cli
Apr 10, 2026
Merged

[cli] Allow negative numbers + add range, value name, argument group validation + custom usage line#201
forfudan merged 4 commits intodevfrom
cli

Conversation

@forfudan
Copy link
Copy Markdown
Owner

@forfudan forfudan commented Apr 10, 2026

This PR enhances the decimo CLI calculator’s argument parsing and help/usage UX by leveraging newer ArgMojo features, and updates project documentation/plans accordingly.

Changes:

  • Add ArgMojo metadata to CLI options/flags (value names, numeric range validation, help groups) and set a custom usage line.
  • Enable ArgMojo negative-number passthrough for positional expressions.
  • Update docs/plans to reflect ArgMojo v0.5.0 integration and adjust pixi tasks for fetching ArgMojo source.

… a hypen and followed by more than one letters to be a positional argument) + range + value name + argument groups + custom usage line
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the decimo CLI calculator’s argument parsing and help/usage UX by leveraging newer ArgMojo features, and updates project documentation/plans accordingly.

Changes:

  • Add ArgMojo metadata to CLI options/flags (value names, numeric range validation, help groups) and set a custom usage line.
  • Enable ArgMojo negative-number passthrough for positional expressions.
  • Update docs/plans to reflect ArgMojo v0.5.0 integration and adjust pixi tasks for fetching ArgMojo source.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
src/cli/main.mojo Adds usage customization, negative-number handling, and richer option metadata (range/value_name/groups).
pixi.toml Enables a fetch task to clone/checkout ArgMojo source at a pinned commit.
docs/readme_unreleased.md Adds/updates overview text for CLI and introduces a Float/BigFloat bullet.
docs/plans/cli_calculator.md Updates roadmap/design notes for ArgMojo v0.5.0 integration and CLI UX features.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/cli/main.mojo
Comment thread src/cli/main.mojo
Comment thread docs/readme_unreleased.md Outdated
Comment thread docs/readme_unreleased.md Outdated
Comment thread docs/plans/cli_calculator.md Outdated
Comment thread docs/readme_unreleased.md Outdated
@forfudan forfudan merged commit 8ee0b4c into dev Apr 10, 2026
11 checks passed
@forfudan forfudan deleted the cli branch April 10, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants