iota/bin/__init__.py
def run_from_argv(self, argv=None):
        # type: (Optional[tuple]) -> int
        """
        Executes the command from a collection of arguments (e.g.,
        :py:data`sys.argv`) and returns the exit code.

        :param argv:
            Arguments to pass to the argument parser.
            If ``None``, defaults to ``sys.argv[1:]``.
        """
        exit_code = self.execute(**self.parse_argv(argv))

        if exit_code is None:
            exit_code = 0

        return exit_code
def run_from_argv(self, argv=None):
        # type: (Optional[tuple]) -> int
        """
        Executes the command from a collection of arguments (e.g.,
        :py:data`sys.argv`) and returns the exit code.

        :param argv:
            Arguments to pass to the argument parser.
            If ``None``, defaults to ``sys.argv[1:]``.
        """
        exit_code = self.execute(**self.parse_argv(argv))

        if exit_code is None:
            exit_code = 0

        return exit_code
Executes the command from a collection of arguments (e.g.,
        :py:data`sys.argv`) and returns the exit code.

        :param argv:
            Arguments to pass to the argument parser.
            If ``None``, defaults to ``sys.argv[1:]``.