old_contents: import twstock
  
  
  def main(argv):
      print('四大買賣點判斷 Best Four Point')
      print('------------------------------')
      if len(argv) > 1:
          sids = argv[1:]
          for sid in sids:
              bfp = twstock.BestFourPoint(twstock.Stock(sid))
              bfp = bfp.best_four_point()
              print('%s: ' % (sid), end='')
              if bfp:
                  if bfp[0]:
                      print('Buy  ', bfp[1])
                  else:
                      print('Sell ', bfp[1])
              else:
                  print("Don't touch")
  
new_contents: import twstock
  
  
  def run(argv):
      print('四大買賣點判斷 Best Four Point')
      print('------------------------------')
      for sid in argv:
          bfp = twstock.BestFourPoint(twstock.Stock(sid))
          bfp = bfp.best_four_point()
          print('%s: ' % (sid), end='')
          if bfp:
              if bfp[0]:
                  print('Buy  ', bfp[1])
              else:
                  print('Sell ', bfp[1])
          else:
              print("Don't touch")
  
subject: Fix best four point cli