3 ms·
> Default behavior can be changed by changing file name of the Sound Keeper executable That's the first time I am seeing a way of configuring an app or passing
by albert_e 3y ago
> Default behavior can be changed by changing file name of the Sound Keeper executable
That's the first time I am seeing a way of configuring an app or passing parameters.
Is this unique or common?
- orev 3y agoThis is very common in unix tools where the name of the executable changes the behavior of the tool (e.g. bash/sh, vim/vi). Exiftool is more like this, where you can pass in command line options inside () within the executable file name.
- _0ffh 3y agoYeah, I believe the trick is to have a bunch of links for different utilities all pointing to the same executable, which then varies it's behaviour based on how it was called.
- 8organicbits 3y agoNeat! https://github.com/vim/vim/blob/ee17b6f70d382ec6c5d8d27b56c4e84106ac8c55/src/main.c#L208 https://github.com/vim/vim/blob/ee17b6f70d382ec6c5d8d27b56c4...