- filename = options['save-dir'] + os.sep + options['timeline']
- print("* Archiving own timeline in %s" % filename)
+ if options['timeline']:
+ filename = options['save-dir'] + os.sep + options['timeline']
+ print("* Archiving own timeline in %s" % filename)
+ elif options['mentions']:
+ filename = options['save-dir'] + os.sep + options['mentions']
+ print("* Archiving own mentions in %s" % filename)