def helpmsg(commands, showTitle=True):
 if showTitle:
  title()
 print ' Available Commands:\n'
 for (cmd, desc) in commands:
  print (' DCTB %s DCTB %s' % ('{0: <12}'.format(cmd), desc))
 print ''

def helpmsg ( commands , showTitle = True ) : if showTitle : title ( ) print ' Available Commands:\n' for ( cmd , desc ) in commands : print ( ' DCTB %s DCTB %s' % ( '{0: <12}' . format ( cmd ) , desc ) ) print ''
print a help menu .