# Path: pycc/asttools/parse.py
# def parse(source, filename='<unknown>', mode='exec'):
#     """An ast.parse extension.
# 
#     This function behaves identically to the standard ast.parse except that it
#     adds parent and sibling references to each node.
#     """
#     node = ast.parse(source, filename, mode)
#     references.add_parent_references(node)
#     references.add_sibling_references(node)
# 
#     return node
# 
# Path: pycc/cli/extensions/utils.py
# def iter_extensions():
# def register_extensions(parser):
# def execute(args, node):


import collections
import os
import sys
from ..asttools import parse
from .extensions import utils
"""Common utilities for CLI modules."""

from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals




def register_arguments(parser):
    """Add arguments required for all CLI tools."""
    parser.add_argument(
        '--source',
        required=True,
        help='Path to load the Python source from.',
    )
    parser.add_argument(
        '--destination',
        required=False,
        help='Path to place the optimized result or "stdout".',
    )


# Path: pycc/asttools/parse.py
# def parse(source, filename='<unknown>', mode='exec'):
#     """An ast.parse extension.
# 
#     This function behaves identically to the standard ast.parse except that it
#     adds parent and sibling references to each node.
#     """
#     node = ast.parse(source, filename, mode)
#     references.add_parent_references(node)
#     references.add_sibling_references(node)
# 
#     return node
# 
# Path: pycc/cli/extensions/utils.py
# def iter_extensions():
# def register_extensions(parser):
# def execute(args, node):


# Path: pycc/cli/common.py
import collections
import os
import sys
from ..asttools import parse
from .extensions import utils

"""Common utilities for CLI modules."""

from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals




def register_arguments(parser):
    """Add arguments required for all CLI tools."""
    parser.add_argument(
        '--source',
        required=True,
        help='Path to load the Python source from.',
    )
    parser.add_argument(
        '--destination',
        required=False,
        help='Path to place the optimized result or "stdout".',
    )


    utils.register_extensions(parser)