#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''
Ledger CLI
'''



class LedgerCli(object):
    '''
    Cli client for Ledger
    '''


def main():
    pass

if __name__ == '__main__':
    main()

@@ -60,16 +60,32 @@
 LI%0A'''%0A%0A
+import argparse%0A
 %0A%0Aclass 
@@ -155,24 +155,1077 @@
 def 
-main():%0A    pass
+parse_arguments():%0A    '''%0A    Parse the command line arguments.%0A    '''%0A    parser = argparse.ArgumentParser(%0A        prog=%22ledgercli.py%22,%0A        formatter_class=argparse.RawDescriptionHelpFormatter,%0A        description='Ledger command line')%0A    subparsers = parser.add_subparsers(%0A        dest=%22operation%22,%0A        help=%22sub commands%22)%0A%0A    # Summary.%0A    showparser = subparsers.add_parser(%22show%22,%0A                                       help=%22Show configuration%22)%0A    showparser.add_argument(%22-f%22, %22--format%22,%0A                            choices=%5B%22text%22, %22json%22%5D,%0A                            required=False,%0A                            help=%22Output format%22)%0A    showparser.add_argument(%22-n%22, %22--node%22,%0A                            required=False,%0A                            help=%22Show configuration for specific host%22)%0A%0A    showparser.add_argument(%22resource%22,%0A                            help=%22Configuration names eg nova, keystone%22)%0A%0A%0A%0A    namespace = parser.parse_args()%0A%0A    return namespace%0A%0A%0Adef main():%0A    namespace = parse_arguments()%0A    print namespace%0A%0A
 %0A%0Aif

Add argparser for cli