simulatino / trimtrailingwhitespaces

Python script that detects textfiles and then removes trailing white spaces and more.
The Unlicense
11 stars 2 forks source link

multiple options simultaneously #30

Open thorade opened 9 years ago

thorade commented 9 years ago

Currently, if one uses options --clean and --strip simultaneously, only --clean will be executed, due to the way the if...elif statement is written (testing for cleanOpt comes first, rest of the statement is skipped). Not sure if it is a feature or a bug, writing this issue as a reminder to myself.

dietmarw commented 9 years ago

I agree this should be possible to run at the same time. I could of course add another elif... but my feeling is there exists a more elegant way to deal with multiple options all together. I need to think about it.