[all-commits] [llvm/llvm-project] 47b25c: [lit] Create one output file when `--output` is sp...

Julian Lettner via All-commits all-commits at lists.llvm.org
Mon May 4 21:44:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 47b25c3323c5919bb3f96a432369cc8d8f5f3117
      https://github.com/llvm/llvm-project/commit/47b25c3323c5919bb3f96a432369cc8d8f5f3117
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2020-05-04 (Mon, 04 May 2020)

  Changed paths:
    M llvm/utils/lit/lit/cl_arguments.py

  Log Message:
  -----------
  [lit] Create one output file when `--output` is specified more than once

The argparse 'append' action concatenates multiple occurrences of an
argument (even when we specify `nargs=1` or `nargs='?'`).  This means
that we create multiple identical output files if the `--output`
argument is given more than once.  This isn't useful and we instead want
this to behave like a standard optional argument: last occurrence wins.




More information about the All-commits mailing list