(subparsers)
return subparser
Argument parser of bitcoin-conf command
Argument parser of bitcoin-conf command
Argument parser of bitcoin - conf command
def subparser(subparsers):
    """Argument parser of bitcoin-conf command"""
    p = subparsers.add_parser(
        'bitcoin-conf',
        aliases=['btc'],
        description="Generate Bitcoin configuration file",
        help='Generate Bitcoin configuration file',
        formatter_class=ArgumentDefaultsHelpFormatter)
    p.add_argument('-d',
                   '--datadir',
                   default=None,
                   help='Path to the data directory where the generated '
                   'bitcoin.conf will be saved')
    p.add_argument('--stdout',
                   action='store_true',
                   default=False,
                   help='Print the generated bitcoin.conf file to the '
                   'standard output instead of saving the file')
    p.add_argument('--concat',
                   action='store_true',
                   default=False,
                   help='Concatenate configurations to pre-existing '
                   'bitcoin.conf file')
    p.set_defaults(func=configure)

    return subparser
def subparser ( subparsers ) : p = subparsers . add_parser ( 'bitcoin-conf' , aliases = [ 'btc' ] , description = "Generate Bitcoin configuration file" , help = 'Generate Bitcoin configuration file' , formatter_class = ArgumentDefaultsHelpFormatter ) p . add_argument ( '-d' , '--datadir' , default = None , help = 'Path to the data directory where the generated ' 'bitcoin.conf will be saved' ) p . add_argument ( '--stdout' , action = 'store_true' , default = False , help = 'Print the generated bitcoin.conf file to the ' 'standard output instead of saving the file' ) p . add_argument ( '--concat' , action = 'store_true' , default = False , help = 'Concatenate configurations to pre-existing ' 'bitcoin.conf file' ) p . set_defaults ( func = configure ) return subparser