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

Stdin parsing optional arg #1263

Merged
merged 5 commits into from
May 21, 2015
Merged

Stdin parsing optional arg #1263

merged 5 commits into from
May 21, 2015

Commits on May 20, 2015

  1. parse_test: test unwanted stdin

    Lars Gierth committed May 20, 2015
    Configuration menu
    Copy the full SHA
    4e0ca86 View commit details
    Browse the repository at this point in the history
  2. parse: fix handling of unwanted stdin

    There can be non-terminal (i.e. non-interactive) sessions
    that are *not* a pipe, for example:
    
    	ssh user@host ipfs version
    
    In this case, it looks like we should read from stdin.
    Parsing stdin is accomplished by deliberately triggering
    the parsing loop once.
    
    We didn't previously check whether there is an ArgDef to support
    that loop iteration.
    Lars Gierth committed May 20, 2015
    Configuration menu
    Copy the full SHA
    2eea1b0 View commit details
    Browse the repository at this point in the history
  3. parse: improve stdin fix

    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed May 20, 2015
    Configuration menu
    Copy the full SHA
    8d6bfec View commit details
    Browse the repository at this point in the history
  4. parse_test: test command with optional arg

    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed May 20, 2015
    Configuration menu
    Copy the full SHA
    be3b7e1 View commit details
    Browse the repository at this point in the history
  5. parse: fix parsing optional arg with stdin

    License: MIT
    Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
    chriscool committed May 20, 2015
    Configuration menu
    Copy the full SHA
    2368172 View commit details
    Browse the repository at this point in the history