argp

ARGV-Parser

argp

ARGV-Parser.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      argp:
        codeberg: https://codeberg.org/frncsdrk/argp.git
    
  2. 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

  1. Fork it (https://github.com/your-github-user/argp/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

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