(subparsers)
return p
Argument parser of config command
Argument parser of config command
Argument parser of config command
def subparser(subparsers):
    """Argument parser of config command"""
    p = subparsers.add_parser('config',
                              aliases=['cfg'],
                              description="Configure Blocksat Rx setup",
                              help='Define receiver and Bitcoin Satellite \
                              configurations',
                              formatter_class=ArgumentDefaultsHelpFormatter)
    p.set_defaults(func=configure)

    subsubparsers = p.add_subparsers(title='subcommands',
                                     help='Target sub-command')
    p2 = subsubparsers.add_parser(
        'show',
        description="Display the local configuration",
        help='Display the local configuration',
        formatter_class=ArgumentDefaultsHelpFormatter)
    p2.set_defaults(func=show)

    p3 = subsubparsers.add_parser(
        'channel',
        description="Configure the channels file used by the USB receiver",
        help='Configure the channels file used by the USB receiver',
        formatter_class=ArgumentDefaultsHelpFormatter)
    p3.set_defaults(func=channel)
    return p
def subparser ( subparsers ) : p = subparsers . add_parser ( 'config' , aliases = [ 'cfg' ] , description = "Configure Blocksat Rx setup" , help = 'Define receiver and Bitcoin Satellite \
                              configurations' , formatter_class = ArgumentDefaultsHelpFormatter ) p . set_defaults ( func = configure ) subsubparsers = p . add_subparsers ( title = 'subcommands' , help = 'Target sub-command' ) p2 = subsubparsers . add_parser ( 'show' , description = "Display the local configuration" , help = 'Display the local configuration' , formatter_class = ArgumentDefaultsHelpFormatter ) p2 . set_defaults ( func = show ) p3 = subsubparsers . add_parser ( 'channel' , description = "Configure the channels file used by the USB receiver" , help = 'Configure the channels file used by the USB receiver' , formatter_class = ArgumentDefaultsHelpFormatter ) p3 . set_defaults ( func = channel ) return p