Edu4rdSHL / blackarch-devtools

Development framework for the BlackArch Linux distribution.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exit call 1 when called without arguments

noraj opened this issue · comments

Even if the test succeed and the command was executed there is still this error at the end:

image

This is due to exit code 1 when the tool was called without options (displaying the help message):

$ blackarch-devtools
blackarch-devtools 0.1.2
Eduard Tolosa <tolosaeduard@gmail.com>
Development tools for BlackArch Linux

USAGE:
    blackarch-devtools [FLAGS] [OPTIONS]

FLAGS:
    -b, --build      Build package from PKGBUILD in clean chroot environment.
    -c, --clean      Clean chroot environment before building.
    -h, --help       Prints help information
    -s, --setup      Setup the clean chroot environment (automatically setup blackarch keyring).
    -t, --test       Install and test package in clean chroot environment.
    -u, --update     Update BlackArch Linux chroot environment.
    -V, --version    Prints version information
    -v               Sets the level of verbosity

OPTIONS:
    -e, --executable <executable>
            Name of the binary file provided by the package that you're installing in the chroot environment.

    -I, --install-missing <install-missing>...
            Build package files that aren't available in repos. You can specify it multiple times.

    -p, --package <package>                       Build package to install in the clean chroot environment.

$ echo $?           
1

Fixed via 7fc133f