The ArgumentParser library makes it straightforward to parse command-line arguments in Swift.
15 Likes
Karl
(👑🦆)
2
Oh, wow. That’s really, really nice! 
1 Like
Just converted a small utility of my own .. Sweet!
Had to drop some other TSCBasic command tool conveniences, but worth it.
This is fantastic, and I really appreciate the effort put into the package documentation.
Lantua
5
Does it/will it support parsing normal string? It'd be especially nice to be able to create custom command line with this.
nnnnnnnn
(Nate Cook)
6
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.
1 Like
Awesome stuff. Thank you for this!
1 Like