#SwiftLang is such a nice scripting language. The only issue is that you basically always end up having to create a package.

Pro tip for when you do: use the `--type tool` flag

```
swift package init --type tool
```

when creating it. This will give you a nice scaffolding with ArgumentParser and the entry point already set up.

@finestructure TIL! This will save so much manual work every time, thanks.
@finestructure The key thing to make it really fly is swift-sh: https://github.com/mxcl/swift-sh
@helge It gets you a bit further but I find that anything a little more complex needs multiple files and at that point you’re in package land.
@helge @finestructure is that still being maintained? mxcl seemed to disappear down a web3 hole a few years back.
@opticalaberration @finestructure Last commit 6 months back, seems to be good: https://github.com/mxcl/swift-sh/commits?author=mxcl
IIRC, there was also a NIH project from Apple, but that never materialized?
Commits · mxcl/swift-sh

Easily script with third-party Swift dependencies. - Commits · mxcl/swift-sh

GitHub