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

README out of date #31

Open
mrcnski opened this issue Aug 30, 2018 · 4 comments
Open

README out of date #31

mrcnski opened this issue Aug 30, 2018 · 4 comments

Comments

@mrcnski
Copy link

mrcnski commented Aug 30, 2018

The README makes it seem that --until-error does not require an argument:

Or until it fails with --until-error (which also accepts an optional error code):

But when I try it without an argument, I get this:

error: The argument '--until-error <until_error>' requires a value but none was supplied

USAGE:
    loop <input> --count-by <count_by> --every <every> --offset <offset> --until-error <until_error>

So I think that maybe --until-fail is what I want, based on this:

Or, if you have a list of files but need to find the one which causes your program to fail:
$ ls | loop './my_program $ITEM' --until-fail;

But I get this:

error: Found argument '--until-fail' which wasn't expected, or isn't valid in this context

And I still don't know how to run a command until it fails. Seems like it is currently impossible.

@Miserlou
Copy link
Owner

Miserlou commented Sep 1, 2018

Yep, that seems like a bug, probably introduced with the refactor. Probably maybe still works with --until-fail 1?

@mrcnski
Copy link
Author

mrcnski commented Sep 1, 2018

Ah, nope:

error: Found argument '--until-fail' which wasn't expected, or isn't valid in this context
	Did you mean --until-time?

Thanks for replying, cool tool 👍

@art-of-dom
Copy link
Collaborator

So in the current master, I see --until-fail is works as expected. --until-error still has the same message:

 error: The argument '--until-error <until_error>' requires a value but none was supplied

I'm going to start looking into it unless there are objections.

@Miserlou
Copy link
Owner

Miserlou commented Mar 25, 2019 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

3 participants