FriedlandAaron / rs_snake

Rust implementation of the classic "Snake" game as a terminal app.
The Unlicense
0 stars 0 forks source link

Add Arg Parser #9

Open FriedlandAaron opened 5 months ago

FriedlandAaron commented 5 months ago

Add support for argument parsing.

Most likely using the "clap" library. Arguments to consider supporting:

FriedlandAaron commented 5 months ago

Initial argument parser added, see this PR #15 Will continue to incrementally add the rest of the options mentioned here.

FriedlandAaron commented 5 months ago

Keybindings for movement have been added, see this PR #16 What's left:

ArielHorwitz commented 5 months ago

Random thought: you may want to consider having a config file, such that settings/options would be determined by resolving in this order: arguments passed, otherwise default to config file, otherwise default to built-in defaults.

FriedlandAaron commented 5 months ago

Will definitely consider this.