old_contents: from .core import *
  
  import sys
  
  def main():
      """ Entry point for cli. """
      if sys.argv[1:]:  # called with input arguments
          copy(' '.join(sys.argv[1:]))
      elif not sys.stdin.isatty():  # piped in input
          copy('\n'.join(sys.stdin.readlines()))
      else:  # paste output
          print(paste())
  
new_contents: from .core import *
  
  import sys
  import os
  
  def main():
      """ Entry point for cli. """
      if sys.argv[1:]:  # called with input arguments
          copy(' '.join(sys.argv[1:]))
      elif not sys.stdin.isatty():  # piped in input
          copy(''.join(sys.stdin.readlines()).rstrip(os.linesep))
      else:  # paste output
          print(paste())
  
subject: Join lines without newline and remove trailing newline