Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --help option #31

Open
fryfrog opened this issue Nov 15, 2018 · 0 comments
Open

Add a --help option #31

fryfrog opened this issue Nov 15, 2018 · 0 comments

Comments

@fryfrog
Copy link
Contributor

fryfrog commented Nov 15, 2018

It'd be really awesome if you could run the script w/ a --help option instead of having it barf because the config file isn't found.

$ python /usr/lib/radarrsync/RadarrSync.py --help
Traceback (most recent call last):
  File "/usr/lib/radarrsync/RadarrSync.py", line 215, in <module>
    radarrServer['url'] = ConfigSectionMap("Radarr")['url']
  File "/usr/lib/radarrsync/RadarrSync.py", line 19, in ConfigSectionMap
    options = Config.options(section)
  File "/usr/lib/python3.7/configparser.py", line 674, in options
    raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'Radarr'
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

No branches or pull requests

1 participant