From eef4efc061ac0b151409f716bd0fa934d149ec82 Mon Sep 17 00:00:00 2001 From: nick Date: Fri, 25 Nov 2022 19:33:45 -0500 Subject: [PATCH] added file option --- toota-palooza/cli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toota-palooza/cli.py b/toota-palooza/cli.py index 1fc5bc8..04b8147 100644 --- a/toota-palooza/cli.py +++ b/toota-palooza/cli.py @@ -110,14 +110,16 @@ def once(tooter: Tooter): def main(): parser = argparse.ArgumentParser( - description='Check for suspicious impersonators.') + description='Randomly interact with a Mastodon timeline.') parser.add_argument( '-d', '--debug', action='store_true', help='Enable debugging messages.') parser.add_argument( '-o', '--once', action='store_true', help='Run once and exit. Default is to run as a daemon.') + parser.add_argument( 'file', nargs='?', default='users.toml', + help='Change file to source users from.') args = parser.parse_args() - Tooter.load_credentials('users.toml') + Tooter.load_credentials(args.file) if args.once: t = Tooter('nick')