Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

tar and ps support writing parameters without leading dashes #43

Open
ghost opened this issue Dec 18, 2019 · 1 comment
Open

tar and ps support writing parameters without leading dashes #43

ghost opened this issue Dec 18, 2019 · 1 comment
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Dec 18, 2019

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

  1. kmdr explain
  2. 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
@ediardo ediardo self-assigned this Dec 22, 2019
@ediardo ediardo added the bug label Dec 22, 2019
@ediardo
Copy link
Member

ediardo commented Dec 22, 2019

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?

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

No branches or pull requests

1 participant