Skip to content

Commit

Permalink
Merge pull request #45 from jdufresne/remainder
Browse files Browse the repository at this point in the history
Use REMAINDER for --run-script to allow passing arbitrary arguments
  • Loading branch information
pwaller authored Oct 19, 2018
2 parents 2acc6f6 + 49de7fe commit f1b86f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyprof2calltree.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ def main():
help="Run the kcachegrind tool on the converted data",
action="store_true")
parser.add_argument('-r', '--run-script',
nargs='+', metavar=('scriptfile', 'args'), dest='script',
nargs=argparse.REMAINDER,
metavar=('scriptfile', 'args'),
dest='script',
help="Name of the Python script to run to collect"
" profiling data")
args = parser.parse_args()
Expand Down

0 comments on commit f1b86f7

Please sign in to comment.