Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

choom tries to parse command arguments #833

Closed
taz-007 opened this issue Aug 1, 2019 · 1 comment
Closed

choom tries to parse command arguments #833

taz-007 opened this issue Aug 1, 2019 · 1 comment

Comments

@taz-007
Copy link

taz-007 commented Aug 1, 2019

Using util-linux 2.34.

choom -n 100 ls -l
choom: invalid option -- 'l'

choom should not try to parse the arguments of the command being launched.

@taz-007 taz-007 changed the title mooch tries to parse command arguments choom tries to parse command arguments Aug 1, 2019
karelzak added a commit that referenced this issue Aug 1, 2019
It's not obvious from the current docs that you have to explicitly
split command line options and wanted commands.

Addresses: #833
Signed-off-by: Karel Zak <kzak@redhat.com>
@karelzak
Copy link
Collaborator

karelzak commented Aug 1, 2019

You have to use "--" to inform options parser that the rest of the command line are not options at all. For example:

   choom -n 100 -- ls -l

@karelzak karelzak closed this as completed Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants