Commits

Anonymous committed daf9845

Display a list of supported VCS-es in --help.

  • Participants
  • Parent commits 4e27a67

Comments (0)

Files changed (1)

File smart-live-rebuild.py

 		else:
 			return self.cpv
 
+	@staticmethod
+	def vcsname():
+		return 'GIT'
+
 	def getrev(self):
 		return self.call(['git', 'rev-parse', self.env['EGIT_BRANCH']]).split('\n')[0]
 
 		else:
 			return self.cpv
 
+	@staticmethod
+	def vcsname():
+		return 'subversion'
+
 	def getrev(self):
 		svninfo = self.call(['svn', 'info'])
 		m = self.revre.search(svninfo)
 	opt = OptionParser(
 			usage='%prog [options] -- [emerge options]',
 			version='%%prog %s' % PV,
-			description='Enumerate all live packages in system, check their repositories for updates and remerge the updated ones.'
+			description='Enumerate all live packages in system, check their repositories for updates and remerge the updated ones. Supported VCS-es: %s.' % ', '.join([x.vcsname() for x in vcsl])
 	)
 	opt.add_option('-C', '--no-color', action='store_false', dest='color', default=True,
 		help='Disable colorful output')