summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pstats.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index 334d717..13d944c 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -680,6 +680,8 @@ if __name__ == '__main__':
initprofile = None
try:
browser = ProfileBrowser(initprofile)
+ for profile in sys.argv[2:]:
+ browser.do_add(profile)
print("Welcome to the profile statistics browser.", file=browser.stream)
browser.cmdloop()
print("Goodbye.", file=browser.stream)