Beispiel #1
0
def _parser_options():
    """Parses the options and arguments from the command line."""
    #We have two options: get some of the details from the config file,
    pdescr = "MATDB Context Execution Watcher"
    parser = argparse.ArgumentParser(parents=[base.bparser],
                                     description=pdescr)
    for arg, options in _script_options.items():
        parser.add_argument(arg, **options)

    args = base.exhandler(examples, parser)
    if args is None:
        return

    return args
Beispiel #2
0
def _parser_options():
    """Parses the options and arguments from the command line."""
    #We have two options: get some of the details from the config file,
    import argparse
    import sys
    from matdb import base
    pdescr = "MATDB Database Plotting"
    parser = argparse.ArgumentParser(parents=[base.bparser],
                                     description=pdescr)
    for arg, options in _script_options.items():
        parser.add_argument(arg, **options)

    args = base.exhandler(examples, parser)
    if args is None:
        return

    return args
Beispiel #3
0
def _parser_options():
    """Parses the options and arguments from the command line."""
    
    import argparse
    import sys
    from matdb import base
    """base is a collection of fundamental programming objects for the rest of hte software, it is mostly a helper function for commandline parsing.
    """
    pdescr = "MATDB Database Constructor"
    parser = argparse.ArgumentParser(parents=[base.bparser], description=pdescr)
    for arg, options in _script_options.items():
        parser.add_argument(arg, **options)
        
    args = base.exhandler(examples, parser)
    if args is None:
        return

    return args