Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow mutliple -b and -a options #13

Open
peey opened this issue Aug 31, 2019 · 1 comment
Open

Allow mutliple -b and -a options #13

peey opened this issue Aug 31, 2019 · 1 comment

Comments

@peey
Copy link

peey commented Aug 31, 2019

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.

@Inventitech
Copy link
Owner

Agreed. Not sure when I'll find time to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants