"""
main entry point to the program
"""


import pylogconf.core
from pytconf.config import register_main, get_pytconf

from pycmdtools.endpoints.group_default import register_group_default


def register_all_groups():
    """
    registers all groups of operations with pytconf
    """
    register_group_default()


@register_main()
def main():
    """
    pycmdtools is a collection of handy command line tools
    """
    pylogconf.core.setup()
    register_all_groups()
    get_pytconf().config_arg_parse_and_launch()


if __name__ == '__main__':
    main()

@@ -99,27 +99,43 @@
 r_main, 
-get_pytconf
+config_arg_parse_and_launch
 %0A%0Afrom p
@@ -491,22 +491,8 @@
     
-get_pytconf().
 conf

use better API