def add_workspace_arg(parser):
    """Add common workspace arg to an argparse parser.

    :param parser: The python argparse parser object (or subparser)
    :type parser: ArgumentParser
    """
    add = parser.add_argument
    add('--workspace', '-w', default=None, help=
        'The path to the catkin_tools workspace or a directory contained within it (default: ".")'
        )
