knqyf263 / pet

Simple command-line snippet manager
MIT License
4.44k stars 223 forks source link

Added uniqueness to params with same name #207

Closed RamiAwar closed 2 years ago

RamiAwar commented 2 years ago

Description of changes:

Added uniqueness to the parameters inside snippets. For example, if reusing the parameter server several times, then it won't be considered as separate values.

This works with default values as well. It would only read the last default value, and if no value is provided, it would not overwrite the previous default value.

If a new default value is provided, only the latest is considered.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.