argp
argp
ARGV-Parser.
Installation
-
Add the dependency to your
shard.yml:dependencies: argp: codeberg: https://codeberg.org/frncsdrk/argp.git -
Run
shards install
Usage
require "argp"
Argp::Parser.parse do |parser|
parser.on("sub", "Subcommand") do
parser.banner = "Usage: test sub [arguments]"
parser.on("-f file", "Set file") do |filename|
path = filename
end
end
end
For more examples, see API documentation.
Development
Requirements
- crystal installation
- just for recipes
General
- Write documentation and tests for new features
- Run linter and tests before committing
Contributing
- Fork it (https://github.com/your-github-user/argp/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- frncsdrk - creator and maintainer
License
MIT or APACHE 2.0 (c) 2024 - 2026 frncsdrk and contributors
Repository
argp
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- 10 days ago
- January 22, 2026
License
Links
Synced at
Fri, 30 Jan 2026 12:58:58 GMT
Languages