Add --unsorted option to Retain Original Term Order#27
Conversation
|
interesting feature! Just out of curiosity: did you pushed this MR because you noticed a new version after several years of inactivity? Or is it a pure coincidence? |
It was just a coincidence that we noticed that this feature is missing right after there was recent activity after a while. Not sure if I would put the MR if the was such an inactivity. |
| options[:substitutions] = subst | ||
| end | ||
| opts.on('-u', '--unsorted', %q(Disable alphabetical sorting of exported terms)) do | ||
| options[:unsorted] = true |
There was a problem hiding this comment.
I would add the unsorted entry in the options definition above (with false as a default value); I know the code is technically working without this definition but all others options are mapped so I feel it would be useful
There are valid cases where users may want to preserve the original order of terms as returned by the POEditor API. Currently poesie does not provide an option to retain this default behavior.
This PR introduces an optional
-u/--unsortedflag that allows users to skip sorting the exported terms before saving them. By default, terms will continue to be sorted to maintain backward compatibility.