knqyf263 / pet

Simple command-line snippet manager
MIT License
4.45k stars 224 forks source link

Params don't inherit their default value when repeated. #159

Closed seivan closed 7 months ago

seivan commented 3 years ago

Not sure if this is intended design, but when using <param> two times in a snippet, it requires the default values to be defined twice. Inherently if the name of a param is the same, it should always be the same. So I should be able to use <param=12.4> at one place, and <param> should be the same value, when used in other parts of the snippet.