def _build_align_cmdline(cmdline, pair, output_filename, kbyte=None, force_type=None, quiet=False):
 cmdline = cmdline[:]
 if (kbyte is None):
  try:
   cmdline.extend(('-kbyte', os.environ['WISE_KBYTE']))
  except KeyError:
   pass
 else:
  cmdline.extend(('-kbyte', str(kbyte)))
 if (not os.isatty(sys.stderr.fileno())):
  cmdline.append('-quiet')
 cmdline.extend(pair)
 cmdline.extend(('>', output_filename))
 if quiet:
  cmdline.extend(('2>', '/dev/null'))
 cmdline_str = ' '.join(cmdline)
 return cmdline_str

def _build_align_cmdline ( cmdline , pair , output_filename , kbyte = None , force_type = None , quiet = False ) : cmdline = cmdline [ : ] if ( kbyte is None ) : try : cmdline . extend ( ( '-kbyte' , os . environ [ 'WISE_KBYTE' ] ) ) except KeyError : pass else : cmdline . extend ( ( '-kbyte' , str ( kbyte ) ) ) if ( not os . isatty ( sys . stderr . fileno ( ) ) ) : cmdline . append ( '-quiet' ) cmdline . extend ( pair ) cmdline . extend ( ( '>' , output_filename ) ) if quiet : cmdline . extend ( ( '2>' , '/dev/null' ) ) cmdline_str = ' ' . join ( cmdline ) return cmdline_str
helper function to build a command line string .