code: def add_flag(var, flag):
      
      if var:
          var = flag + " " + str(var)
      else:
          var = ""
      return var
docs: for use when calling command-line scripts from withing a program.
      if a variable is present, add its proper command_line flag.
      return a string.