Skip to content

README out of date #31

Open
Open

Description

@mrcnski

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.

Activity

  1. Miserlou commented on Sep 1, 2018

    @Miserlou
    Owner

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

  2. mrcnski commented on Sep 1, 2018

    @mrcnski
    Author

    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 👍

  3. art-of-dom commented on Mar 25, 2019

    @art-of-dom
    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.

  4. Miserlou commented on Mar 25, 2019

    @Miserlou
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions