RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

Basic CLI functions

Open morganbarber opened this issue 1 year ago • 3 comments

Description

Added 2 arguments to main.py. --post-id to specify post-id from command line. --run-many use run many function from command line.

Issue Fixes

None

Checklist:

  • [x] I am pushing changes to the develop branch
  • [x] I am using the recommended development environment
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have formatted and linted my code using python-black and pylint
  • [x] I have cleaned up unnecessary files
  • [x] My changes generate no new warnings
  • [x] My changes follow the existing code-style
  • [x] My changes are relevant to the project

Any other information (e.g how to test the changes)

Run main.py with CLI arguments

morganbarber avatar May 10 '24 15:05 morganbarber

Does settings post_id in the config still work? And does running with the post id param override that?

cyteon avatar May 10 '24 16:05 cyteon

Setting post_id in the config still works, the param doesn’t work. I’ll fix that in my next commit.

morganbarber avatar May 10 '24 17:05 morganbarber

The command arguments now have priority over the config. If there are no commands, the config will still work.

morganbarber avatar May 10 '24 18:05 morganbarber