Skip to content

Allow mutliple -b and -a options #13

Description

@peey

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions