import argparse
import sys

import settings

"""
usage: mfh.py [-h] [-c | --client [PORT]] [-s | --server [PORT]] [-u] [-v]

Serve some sweet honey to the ubiquitous bots!

optional arguments:
  -h, --help       show this help message and exit
  -c               launch client with on port defined in settings
  --client [PORT]  port to start a client on
  -s               launch server with on port defined in settings
  --server [PORT]  port to start a server on
  -u, --updater    enable self updating
  -v, --verbose    increase output verbosity

And that`s how you`d detect a sneaky chinese bot.
"""


def parse():
    parser = argparse.ArgumentParser(
        description='Serve some sweet honey to the ubiquitous bots!',
        epilog='And that`s how you`d detect a sneaky chinese bot.',
        prog='mfh.py',
        )

    parser.add_argument(
        '-c',
        const=settings.HONEYPORT,
        help='port to start a CLIENT on',
        metavar='PORT',
        nargs='?',
        type=int,
        )

    parser.add_argument(
        '-s',
        const=settings.HIVEPORT,
        help='port to start a SERVER on',
        metavar='PORT',
        nargs='?',
        type=int,
        )

    parser.add_argument(
        '-u',
        action='store_true',
        help='enable self updating',
        )

    parser.add_argument(
        '-v',
        '--verbose',
        action='store_true',
        help='increase output verbosity',
        )
    if len(sys.argv[1:]) == 0:
        parser.print_usage()
        parser.exit()
    return parser.parse_args()

@@ -69,41 +69,19 @@
 %5B-c 
-%7C --client %5BPORT%5D%5D %5B-s %7C --server
+%5BPORT%5D%5D %5B-s
  %5BPO
@@ -181,18 +181,16 @@
 elp     
-  
 show thi
@@ -222,86 +222,18 @@
  -c 
-              launch client with on port defined in settings%0A  --client 
 %5BPORT%5D
+    
   po
@@ -250,101 +250,33 @@
 t a 
-client on%0A  -s               launch server with on port defined in settings%0A  --server
+CLIENT on%0A  -s
  %5BPORT%5D
+    
   po
@@ -293,22 +293,22 @@
 t a 
-server
+SERVER
  on%0A  -u
 , --
@@ -307,19 +307,17 @@
   -u
-, --updater
+         
     
@@ -354,18 +354,16 @@
 erbose  
-  
 increase

Update documentation