Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Forgetting last argument exits with 0 exit code #114

Open
willemstuursma opened this issue Apr 19, 2018 · 1 comment
Open

Forgetting last argument exits with 0 exit code #114

willemstuursma opened this issue Apr 19, 2018 · 1 comment

Comments

@willemstuursma
Copy link

PHP Parallel Lint version 1.0.0
-------------------------------
Usage:
    parallel-lint [sa] [-p php] [-e ext] [-j num] [--exclude dir] [files or directories]
Options:
    -p <php>        Specify PHP-CGI executable to run (default: 'php').
    -s, --short     Set short_open_tag to On (default: Off).
    -a, -asp        Set asp_tags to On (default: Off).
    -e <ext>        Check only files with selected extensions separated by comma.
                    (default: php,php3,php4,php5,phtml)
    --exclude       Exclude a file or directory. If you want exclude multiple items,
                    use multiple exclude parameters.
    -j <num>        Run <num> jobs in parallel (default: 10).
    --colors        Enable colors in console output. (disables auto detection of color support)
    --no-colors     Disable colors in console output.
    --no-progress   Disable progress in console output.
    --json          Output results as JSON string (require PHP 5.4).
    --blame         Try to show git blame for row with error.
    --git <git>     Path to Git executable to show blame message (default: 'git').
    --stdin         Load files and folder to test from standard input.
    --ignore-fails  Ignore failed tests.
    -h, --help      Print this help.
    -V, --version   Display this application version

$ echo $?
0

So any configuration mistakes are not discovered by automated tooling.

@richardhughes
Copy link

Would you suggest returning 1 if running the command without any configuration parameters (Like: php parallel-lint)?

Running it without parameters is not strictly an error.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants