Skip to content

Use noargs for command-line arguments handling#13

Merged
sile merged 4 commits intomainfrom
noargs
Mar 24, 2025
Merged

Use noargs for command-line arguments handling#13
sile merged 4 commits intomainfrom
noargs

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Mar 24, 2025

Copilot Summary

This pull request includes changes to the dependency management and the main function of the application to improve argument parsing and simplify the codebase. The most important changes include adding a new dependency, switching to a different argument parsing library, and removing redundant code.

Dependency management:

  • Cargo.toml: Added the noargs dependency to handle command-line arguments.

Main function improvements:

  • src/main.rs: Replaced orfail::Result with noargs::Result in the main function and integrated noargs for argument parsing, including handling version and help flags.
  • src/main.rs: Removed the check_args function and associated helper functions such as bold and bold_underline, as they are no longer needed with the new argument parsing approach.

@sile sile merged commit 19a481e into main Mar 24, 2025
9 checks passed
@sile sile deleted the noargs branch March 24, 2025 22:56
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.

1 participant