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

enhancement: -q should quietly fail #315

Open
alanbork opened this issue Mar 14, 2022 · 3 comments
Open

enhancement: -q should quietly fail #315

alanbork opened this issue Mar 14, 2022 · 3 comments

Comments

@alanbork
Copy link

I like to use the -q argument as an optional argument to scripts like this:

function killpick { ps ax | pick -q $1 | awk '{print $1}' | xargs kill -9; }

this way I can either pass the name of what I want to kill (and confirm it matched a running program before killing) or run it with no arguments and type in the name interactively. But -q causes pick to error out if there's no actual argument passed, making this kind of thing unnecessarily hard.

@mptre
Copy link
Owner

mptre commented Mar 14, 2022 via email

@alanbork
Copy link
Author

alanbork commented Mar 14, 2022 via email

@mptre
Copy link
Owner

mptre commented Mar 15, 2022 via email

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