mercurial/statprof.py
branchstable
changeset 30845 262c2be8ea5a
parent 30637 344e68882cd3
child 30928 be3a4fde38eb
--- a/mercurial/statprof.py	Wed Jan 18 23:43:41 2017 -0500
+++ b/mercurial/statprof.py	Wed Jan 18 22:45:07 2017 -0800
@@ -800,6 +800,10 @@
         else:
             assert False, "unhandled option %s" % o
 
+    if not path:
+        print('must specify --file to load')
+        return 1
+
     load_data(path=path)
 
     display(**displayargs)