iota/bin/__init__.py
def create_argument_parser(self):
        # type: () -> ArgumentParser
        """
        Returns the argument parser that will be used to interpret
        arguments and options from argv.
        """
        parser = ArgumentParser(
            description=self.__doc__,
            epilog='PyOTA v{version}'.format(version=__version__),
        )

        parser.add_argument(
            '--uri',
            type=text_type,
            default='http://localhost:14265/',

            help=(
                'URI of the node to connect to '
                '(defaults to http://localhost:14265/).'
            ),
        )

        if self.requires_seed:
            parser.add_argument(
                '--seed-file',
                type=text_type,
                dest='seed_file',

                help=(
                    'Path to a file containing your seed in cleartext. '
                    'If not provided, you will be prompted to enter '
                    'your seed via stdin.'
                ),
            )

        parser.add_argument(
            '--testnet',
            action='store_true',
            default=False,
            help='If set, use testnet settings (e.g., for PoW).',
        )

        return parser
def create_argument_parser(self):
        # type: () -> ArgumentParser
        parser = ArgumentParser(
            description=self.__doc__,
            epilog='PyOTA v{version}'.format(version=__version__),
        )

        parser.add_argument(
            '--uri',
            type=text_type,
            default='http://localhost:14265/',

            help=(
                'URI of the node to connect to '
                '(defaults to http://localhost:14265/).'
            ),
        )

        if self.requires_seed:
            parser.add_argument(
                '--seed-file',
                type=text_type,
                dest='seed_file',

                help=(
                    'Path to a file containing your seed in cleartext. '
                    'If not provided, you will be prompted to enter '
                    'your seed via stdin.'
                ),
            )

        parser.add_argument(
            '--testnet',
            action='store_true',
            default=False,
            help='If set, use testnet settings (e.g., for PoW).',
        )

        return parser
def create_argument_parser ( self ) : # type: () -> ArgumentParser parser = ArgumentParser ( description = self . __doc__ , epilog = 'PyOTA v{version}' . format ( version = __version__ ) , ) parser . add_argument ( '--uri' , type = text_type , default = 'http://localhost:14265/' , help = ( 'URI of the node to connect to ' '(defaults to http://localhost:14265/).' ) , ) if self . requires_seed : parser . add_argument ( '--seed-file' , type = text_type , dest = 'seed_file' , help = ( 'Path to a file containing your seed in cleartext. ' 'If not provided, you will be prompted to enter ' 'your seed via stdin.' ) , ) parser . add_argument ( '--testnet' , action = 'store_true' , default = False , help = 'If set, use testnet settings (e.g., for PoW).' , ) return parser
Returns the argument parser that will be used to interpret
        arguments and options from argv.
Returns the argument parser that will be used to interpret arguments and options from argv .