Skip to content

jodersky/scala-argparse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d00590c · Apr 3, 2023
Apr 3, 2023
Apr 3, 2023
Jan 13, 2023
Jan 8, 2023
Feb 7, 2023
Feb 4, 2023
Jan 13, 2023
Jan 31, 2021
Apr 3, 2023
Apr 24, 2020
Apr 3, 2023
Apr 30, 2020
Jan 13, 2023
Apr 3, 2023
Oct 26, 2020
Mar 7, 2021

Repository files navigation

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.