# About the ArgumentParser category

**URL:** <https://forums.swift.org/t/about-the-argumentparser-category/34148>\
**Category:** ArgumentParser\
**Created:** [February 27, 2020, 11:11pm UTC](https://forums.swift.org/t/about-the-argumentparser-category/34148 "2020-02-27T23:11:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishal\_shah](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mishal_shah/32/247_2.png) [@mishal\_shah](https://forums.swift.org/u/mishal_shah)\
**Post date:** [February 27, 2020, 11:11pm UTC](https://forums.swift.org/t/about-the-argumentparser-category/34148/1 "2020-02-27T23:11:55Z")

</div>

The ArgumentParser library makes it straightforward to parse command-line arguments in Swift.

> **[GitHub - apple/swift-argument-parser: Straightforward, type-safe argument...](https://github.com/apple/swift-argument-parser)**
>
> Straightforward, type-safe argument parsing for Swift - GitHub - apple/swift-argument-parser: Straightforward, type-safe argument parsing for Swift

---

<div class="post-metadata">

**Author:** ![Karl](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@Karl](https://forums.swift.org/u/Karl)\
**Post date:** [February 27, 2020, 11:33pm UTC](https://forums.swift.org/t/about-the-argumentparser-category/34148/2 "2020-02-27T23:33:41Z")

</div>

Oh, wow. That’s really, really nice! 🤩

---

<div class="post-metadata">

**Author:** ![Gavin\_Eadie](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/gavin_eadie/32/40830_2.png) [@Gavin\_Eadie](https://forums.swift.org/u/Gavin_Eadie)\
**Post date:** [February 28, 2020, 5:51am UTC](https://forums.swift.org/t/about-the-argumentparser-category/34148/3 "2020-02-28T05:51:22Z")

</div>

Just converted a small utility of my own .. Sweet!  
Had to drop some other `TSCBasic` command tool conveniences, but worth it.

---

<div class="post-metadata">

**Author:** ![jasonhawkins](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jasonhawkins/32/30979_2.png) [@jasonhawkins](https://forums.swift.org/u/jasonhawkins)\
**Post date:** [February 28, 2020, 6:07am UTC](https://forums.swift.org/t/about-the-argumentparser-category/34148/4 "2020-02-28T06:07:56Z")

</div>

This is fantastic, and I really appreciate the effort put into the package documentation.

---

<div class="post-metadata">

**Author:** ![Lantua](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/lantua/32/8868_2.png) [@Lantua](https://forums.swift.org/u/Lantua)\
**Post date:** [February 28, 2020, 3:07pm UTC](https://forums.swift.org/t/about-the-argumentparser-category/34148/5 "2020-02-28T15:07:07Z")

</div>

Does it/will it support parsing normal string? It'd be especially nice to be able to create custom command line with this.

---

<div class="post-metadata">

**Author:** ![nnnnnnnn](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/nnnnnnnn/32/264_2.png) [@nnnnnnnn](https://forums.swift.org/u/nnnnnnnn)\
**Post date:** [February 28, 2020, 9:31pm UTC](https://forums.swift.org/t/about-the-argumentparser-category/34148/6 "2020-02-28T21:31:11Z")

</div>

It does! You can pass an array of strings to any of the parsing methods or to `main()`, and it will parse that instead of the command-line arguments.

---

<div class="post-metadata">

**Author:** ![Erica\_Sadun](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/erica_sadun/32/243_2.png) [@Erica\_Sadun](https://forums.swift.org/u/Erica_Sadun)\
**Post date:** [February 28, 2020, 11:45pm UTC](https://forums.swift.org/t/about-the-argumentparser-category/34148/7 "2020-02-28T23:45:33Z")

</div>

Awesome stuff. Thank you for this!
