Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use clap for argument parsing #84

Merged
merged 1 commit into from
May 24, 2024
Merged

refactor: use clap for argument parsing #84

merged 1 commit into from
May 24, 2024

Conversation

uncenter
Copy link
Contributor

@uncenter uncenter commented May 22, 2024

Resolves #81. I went and did it anyway - totally no worries if you decide not to use clap, feel free to close the PR :)

All previous features/details should be implemented here as well:

Help text:

Also works with --help and -h

Screenshot 2024-05-22 at 15 37 21 (Ghostty)

Compile and run a file (no output file provided):

Screenshot 2024-05-22 at 15 36 51 (Ghostty)

Compile and run a string with eval mode:

Works with --eval and -e

Screenshot 2024-05-22 at 15 37 58 (Ghostty)

Compile to an output file:

Screenshot 2024-05-22 at 15 38 53 (Ghostty)

Cargo.toml Show resolved Hide resolved
@Ph0enixKM
Copy link
Member

Thanks for your commitment. I'll test this asap on my local machine

@Ph0enixKM
Copy link
Member

It seems that it works the same. Merging

@Ph0enixKM Ph0enixKM merged commit e38b75e into amber-lang:master May 24, 2024
1 check passed
@uncenter uncenter deleted the feat/use-clap branch May 24, 2024 10:53
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.

Consider using clap for argument parsing
2 participants