タグ

2020年2月28日のブックマーク (1件)

  • Announcing ArgumentParser

    We’re delighted to announce ArgumentParser, a new open-source library that makes it straightforward — even enjoyable! — to parse command-line arguments in Swift. Building a Command-Line Tool To show you what using the ArgumentParser library is like, we’re going to create a utility that generates random numbers. Like many command-line tools, this one will gradually accrue features, and we’ll see ho

    Announcing ArgumentParser
    ikesyo
    ikesyo 2020/02/28
    SwiftのCLIツール用の公式argument parser実装。Property Wrapperを使ってきれいに引数やオプションを定義できたり、サブコマンドもサポートしてたりとても良さそう!