loathers / grimoire

Apache License 2.0
3 stars 9 forks source link

Add positional arguments to the CLI argument parsing #51

Closed Kasekopf closed 1 year ago

Kasekopf commented 1 year ago

These are useful to support arguments without provided keys, like garbo 40 to run for only 40 turns.

This PR also improves the error messages in the argument parser.

This is a type breaking change, since the last argument to Args.create was changed from an optional string to an optional object. But I think I am the only user currently using the previous behavior.