Source code for pisak.arg_parser

import argparse

_arg_parser = argparse.ArgumentParser(
    description='PISAK - Polish Integrating System of Alternative Communication',
    epilog='This program is licensed under the terms of the GNU GPL version 3.')

    '-d', '--debug', action='store_true',
    help='run in debug mode '
         '(enables extensive logging to console and to the log file)')
    '-s', '--skin', default='default', help='set skin')
    'args', nargs=argparse.REMAINDER, help='arguments passed to applications')

_args = None

[docs]def get_args(): """ Get arguments of the program. :return: parsed arguments being an :class:`argparse.Namespace` instance. """ global _args if _args is None: _args, _ = _arg_parser.parse_known_args() return _args