All Downloads are FREE. Search and download functionalities are using the official Maven repository.

caseapp.core.RemainingArgs.scala Maven / Gradle / Ivy

There is a newer version: 2.0.0-M8
Show newest version
package caseapp.core

/**
  * Arguments that don't correspond to options.
  *
  * @param remaining: arguments before any `--`
  * @param unparsed: arguments after a first `--`, if any
  */
final case class RemainingArgs(
  remaining: Seq[String],
  unparsed: Seq[String]
) {

  /**
    * Arguments both before and after a `--`.
    *
    * The first `--`, if any, is not included in this list.
    */
  def all: Seq[String] =
    remaining ++ unparsed
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy