'Parse and validate arguments for compile_sass command.
Args:
*args: Positional arguments passed to the update_assets command
**options: optional arguments passed to the update_assets command
Returns:
A tuple containing parsed values for themes, system, source comments and output style.
1. system (list): list of system names for whom to compile theme sass e.g. \'lms\', \'cms\'
2. theme_dirs (list): list of Theme objects
3. themes (list): list of Theme objects
4. force (bool): Force full compilation
5. debug (bool): Disable Sass compression'

@staticmethod
def parse_arguments(*args, **options):

    system = options.get(u'system', ALL_SYSTEMS)
    given_themes = options.get(u'themes', [u'all'])
    theme_dirs = options.get(u'theme_dirs', None)
    force = options.get(u'force', True)
    debug = options.get(u'debug', True)
    if theme_dirs:
        available_themes = {}
        for theme_dir in theme_dirs:
            available_themes.update({t.theme_dir_name: t for t in get_themes(theme_dir)})
    else:
        theme_dirs = get_theme_base_dirs()
        available_themes = {t.theme_dir_name: t for t in get_themes()}
    if ((u'no' in given_themes) or (u'all' in given_themes)):
        if (len(given_themes) > 1):
            raise CommandError(u"Invalid    themes    value,    It    must    either    be    'all'    or    'no'    or    list    of    themes.")
    elif ((not set(given_themes).issubset(available_themes.keys())) and is_comprehensive_theming_enabled()):
        raise CommandError(u"Given    themes    '{themes}'    do    not    exist    inside    any    of    the    theme    directories    '{theme_dirs}'".format(themes=u',    '.join((set(given_themes) - set(available_themes.keys()))), theme_dirs=theme_dirs))
    if (u'all' in given_themes):
        themes = list(available_themes.itervalues())
    elif (u'no' in given_themes):
        themes = []
    else:
        themes = [available_themes.get(theme) for theme in given_themes if (theme in available_themes)]
    return (system, theme_dirs, themes, force, debug)
