mkasberg / script-seed

🌱 Seed scripts for popular (& unpopular) scripting languages.
https://mkasberg.github.io/script-seed/
MIT License
11 stars 23 forks source link

Add an Erlang Script Seed #34

Closed mkasberg closed 4 years ago

mkasberg commented 4 years ago

Add an Erlang "seed" script to the seeds folder. Basically, this would be an executable Erlang file (with #!/usr/bin/env escript) that parses some simple command-line arguments (like -h or -t, see other scripts as examples) and prints a sentence or two to the command line. It's intended to demonstrate how to parse command line arguments and print something to the console in Erlang.

See CONTRIBUTING.md, and feel free to ask for help or clarification here.

This page should be helpful - it describes how to use escript to run erlang as a scripting language.

As a rough example, see #26.

mkasberg commented 4 years ago

Closed by #35. Thanks! :tada: