Discogs.CLI (discogs_shuffle v0.2.1) View Source

Entry-point for the CLI app.

This is used as escript's :main_module.

cf. https://elixirschool.com/en/lessons/advanced/escripts/

Link to this section Summary

Functions

Parses the ARGV and either syncs or shuffles a user's collection, depending on the arguments given.

Link to this section Functions

Specs

main([String]) :: :ok

Parses the ARGV and either syncs or shuffles a user's collection, depending on the arguments given.

Options include:

--sync USER -> sync_collection/1

--shuffle USER <N> -> shuffle_collection/2

Invalid or no arguments defer to the usage doc.