Show
Ignore:
Timestamp:
02/23/08 13:14:22 (4 years ago)
Author:
trivoallan
Message:

cleverbox : Version is now displayed at startup, and in the 'help' command. Fixes #29

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cleverbox/trunk/cleverbox/scripts/admin.py

    r260 r261  
    101101    def run(self): 
    102102        self.interactive = True 
    103         print styles.style.H1('Welcome to cleverbox-admin\n' \ 
     103        print styles.style.H1('Welcome to cleverbox-admin v%s\n' \ 
    104104                              'Interactive Cleverbox administration console.\n' \ 
    105                               "Type:  '?' or 'help' for help on commands.\n") 
     105                              "Type:  '?' or 'help' for help on commands.\n") % self.env.get_version() 
    106106        self.cmdloop() 
    107107 
     
    179179        else: 
    180180            docs = (self._help_client + self._help_project + self._help_initenv + self._help_upgrade) 
    181             print 'cleverbox-admin - The Cleverbox Administration Console' 
     181            print 'cleverbox-admin - The Cleverbox Administration Console v%s' % self.env.get_version() 
    182182            if not self.interactive: 
    183183                print