<gh_stars>0
"""The vars command."""

from .base import Base
from .. import ComsolExportFile
from ..Exceptions import TidysolException


class Vars(Base):
    """List the variables (with descriptions) for which data are recorded"""
    
    def run(self):
        try:
            c=ComsolExportFile(self.options["<name>"])    
            print(", ".join(str(vd) for vd in c.vars_w_descs()))  
        
        #not much to do with unexpected exceptions other than print them out
        except Exception as e: 
            print(e)
            
        except TidysolException as e:
            print(e)
"""The vars command."""

from .base import Base
from .. import ComsolExportFile
from ..Exceptions import TidysolException


class Vars(Base):
    """List the variables (with descriptions) for which data are recorded"""
    
    def run(self):
        try:
            c=ComsolExportFile(self.options["<name>"])    
            print(", ".join(str(vd) for vd in c.vars_w_descs()))  
        
        #not much to do with unexpected exceptions other than print them out
        except Exception as e: 
            print(e)
            
        except TidysolException as e:
            print(e)
The vars command. List the variables (with descriptions) for which data are recorded #not much to do with unexpected exceptions other than print them out