Skip to content

Commit 861f531

Browse files
committed
Better error message for mprof run
thanks to @anntzer for reporting!
1 parent 271e173 commit 861f531

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

mprof

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,14 @@ def get_cmd_line(args):
181181

182182
def run_action():
183183
import time, subprocess
184-
parser = OptionParser(version=mp.__version__)
184+
parser = OptionParser(version=mp.__version__, usage="mprof run [options]")
185185
parser.disable_interspersed_args()
186186
parser.add_option("--python", dest="python", default=False,
187187
action="store_true",
188-
help="""Activates extra features when the profiled executable is
189-
a Python program (currently: function timestamping.)""")
188+
help="""Activates extra features when the profiling executable is a Python program (currently: function timestamping.)""")
190189
parser.add_option("--nopython", dest="nopython", default=False,
191190
action="store_true",
192-
help="""Disables extra features when the profiled executable is
193-
a Python program (currently: function timestamping.)""")
191+
help="""Disables extra features when the profiled executable is a Python program (currently: function timestamping.)""")
194192
parser.add_option("--interval", "-T", dest="interval", default="0.1",
195193
type="float", action="store",
196194
help="Sampling period (in seconds), defaults to 0.1")

0 commit comments

Comments
 (0)