diff options
author | zlg <zlg@zlg.space> | 2018-10-18 16:36:39 -0700 |
---|---|---|
committer | zlg <zlg@zlg.space> | 2018-10-18 16:36:39 -0700 |
commit | 3ec2a2902caaf3e70deea650425339299af5d821 (patch) | |
tree | 158d1c8baf932bd05af7f5ac7878243358beb240 /COPYING | |
parent | cli: Add zero-game import/export messages (diff) | |
download | vgstash-3ec2a2902caaf3e70deea650425339299af5d821.tar.gz vgstash-3ec2a2902caaf3e70deea650425339299af5d821.tar.bz2 vgstash-3ec2a2902caaf3e70deea650425339299af5d821.tar.xz vgstash-3ec2a2902caaf3e70deea650425339299af5d821.zip |
Catch when an invalid list filter is passed
Before, vgstash.DB.list_games() would default to 'allgames' and silently
hide it when a filter wasn't found. This commit ensures that the vgstash
package and CLI both indicate when an invalid filter is passed to them:
* vgstash.DB.list_games() will return False on a failure to match;
* vgstash_cli uses Click's Choice object to enforce the constraint
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions