jodersky / scala-argparse

Pragmatic command line parsing and configuration for Scala apps

Home Page:https://jodersky.github.io/scala-argparse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scala-argparse

project docs discord project chat latest version stability: firm

Pragmatic command line parsing for Scala applications.

Highlights

  • Simple interface, inspired by the argparse package from python.

  • Bash completion.

    • Standalone bash completion for a super snappy user experience, even on the JVM.

    • Interactive bash completion for the most custom needs.

  • Works with Scala 2 and 3, Native and JVM

Docs

  • HTML: look at the website
  • source (markdown): browse the docs/ folder.

Building

This project uses Mill to build. The configuration is in the build.sc file.

Developer

  • compile main project for all supported versions of scala: ./mill argparse.__.compile
  • run all tests: ./mill __.test
  • run an example:
    • ./mill examples.<name of example> <arguments>
    • e.g. ./mill examples.paramnamed --verbosity 5
    • note: examples use Scala Native and hence require llvm
  • publish main project locally: ./mill argparse.__.publishLocal

Maintainer

Look at the scripts in the ci/ directory.

About

Pragmatic command line parsing and configuration for Scala apps

https://jodersky.github.io/scala-argparse

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Scala 91.4%Language:Handlebars 5.7%Language:Shell 1.7%Language:JavaScript 0.7%Language:CSS 0.5%