diff -r 8a38bbf92048 Lib/pstats.py --- a/Lib/pstats.py Sun Jan 22 12:16:04 2012 +0100 +++ b/Lib/pstats.py Mon Jan 23 14:37:29 2012 +1100 @@ -680,6 +680,8 @@ 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)