andrewchambers / bupstash

Easy and efficient encrypted backups.
https://bupstash.io
MIT License
897 stars 31 forks source link

Tag ids cannot contain hyphens, despite documentation claiming they can. #395

Open Techcable opened 1 year ago

Techcable commented 1 year ago

The documentation for 0.12.0 claims that valid tag ids support alphanumeric characters, and - or _.

However, today (on bupstash-0.12.0) tags with hyphens like extracted-from were not working until I changed them to underscores _. Either the documentation should be updated or the pattern should be fixed (preferably the later).

This took a long time to figure out because bupstash gives poor error messages when flags, tags, and positional arguments are mixed up.

piegamesde commented 9 months ago

This took a long time to figure out because bupstash gives poor error messages when flags, tags, and positional arguments are mixed up.

Yet another reason in favor of #389 IMO

piegamesde commented 9 months ago

With #382, you should at least get decent error messages. Also, please post more information about your issue so that I can better understand it.