Skip to content

Conversation

@coco11211
Copy link

Fixed two issues that prevented actions from being detected:

  1. Config parser now checks both config file and command-line arguments

    • Previously, when --config was used, sys.argv actions were ignored
    • Now command-line actions are added even when config file exists
    • This allows users to run: python run.py --config file.yml --feed 5
  2. Improved error message when no actions are found

    • Shows available actions in alphabetical order
    • Provides clear examples of how to use actions
    • Explains both config file and command-line methods
    • Links to documentation for more details

This fixes the "No actions found!" error that occurred even when passing actions like --feed 5 on the command line.

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Device Model or Emulator:
  • Android Verison:
  • Instagram Version:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have tested my code in every way I can think of to prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Fixed two issues that prevented actions from being detected:

1. Config parser now checks both config file and command-line arguments
   - Previously, when --config was used, sys.argv actions were ignored
   - Now command-line actions are added even when config file exists
   - This allows users to run: python run.py --config file.yml --feed 5

2. Improved error message when no actions are found
   - Shows available actions in alphabetical order
   - Provides clear examples of how to use actions
   - Explains both config file and command-line methods
   - Links to documentation for more details

This fixes the "No actions found!" error that occurred even when
passing actions like --feed 5 on the command line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants