kmdr-cli
kmdr-cli copied to clipboard
tar and ps support writing parameters without leading dashes
Describe the bug
With tar (and ps and other tools as well), e.g.tar -xp is synonymous to tar xp. Right now, for both tar and ps, kmdr currently only recognizes the tar -xp form of the command properly. Otherwise, it will tell you things like xp -- an operand.
To Reproduce
- kmdr explain
- tar xp
Expected behavior Treat dash-prefixed parameters the same as unprefixed ones for these kinds of commands.
Desktop (please complete the following information):
- OS: Linux
- Browser: no
- Version: no
Hi @sknorr , thanks for the issue 👍
The parser would need to handle a special case for programs that accept BSD-like options. I'll focus on ps and tar, are there more?