()
Run when this module is called from the command line.

    When the main function ends, it throw a sys.exit with 0 if it has end ok
    or one of the :py:data:`isbg.isbg.__exitcodes__`
Run when this module is called from the command line.
Run when this module is called from the command line .
def main():
    """Run when this module is called from the command line.

    When the main function ends, it throw a sys.exit with 0 if it has end ok
    or one of the :py:data:`isbg.isbg.__exitcodes__`
    """
    sbg = isbg.ISBG()
    try:
        if parse_args(sbg) == 1:  # usage option
            sys.exit(0)
        return sbg.do_isbg()  # return the exit code.
    except isbg.ISBGError as err:
        sys.stderr.write(err.message)
        sys.stderr.write("\nUse --help to see valid options and arguments\n")
        if err.exitcode == -1:
            raise
        sys.exit(err.exitcode)
def main ( ) : sbg = isbg . ISBG ( ) try : if parse_args ( sbg ) == 1 : # usage option sys . exit ( 0 ) return sbg . do_isbg ( ) # return the exit code. except isbg . ISBGError as err : sys . stderr . write ( err . message ) sys . stderr . write ( "\nUse --help to see valid options and arguments\n" ) if err . exitcode == - 1 : raise sys . exit ( err . exitcode )