You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of having to specify the example file by -f
For instance, I tried strans -b a.b -a a-b and wanted to replace all dots with dashes on output of ls
It worked for normal filenames such as file.js but for file2.config.js the transformation was file2-js, so the program inferred was "take everything before the first dot and everything after the last dot and join them via a dash"
Giving -b a.b.c -a a-b-c produced weird behavior
Giving both of them in an example filed worked.
I suspect it'll often be the case that I have to give an additional example.
So support for -b before1 before2 -a after1 after2 or support for -b before1 -a after1 -b before2 -a after2 would be awesome.
The text was updated successfully, but these errors were encountered:
Instead of having to specify the example file by -f
For instance, I tried
strans -b a.b -a a-b
and wanted to replace all dots with dashes on output ofls
It worked for normal filenames such as
file.js
but forfile2.config.js
the transformation wasfile2-js
, so the program inferred was "take everything before the first dot and everything after the last dot and join them via a dash"Giving
-b a.b.c -a a-b-c
produced weird behaviorGiving both of them in an example filed worked.
I suspect it'll often be the case that I have to give an additional example.
So support for
-b before1 before2 -a after1 after2
or support for-b before1 -a after1 -b before2 -a after2
would be awesome.The text was updated successfully, but these errors were encountered: