l3uddz / plex_autoscan

Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
GNU General Public License v3.0
395 stars 70 forks source link

Improve argument parsing #7

Closed horjulf closed 7 years ago

horjulf commented 7 years ago
usage: scan.py [-h] [--config [CONFIG]] [--logfile [LOGFILE]]
               [--loglevel {WARN,INFO,DEBUG}]
               {sections,server}

Script to assist sonarr/radarr with plex imports. Will only scan the folder 
that has been imported, instead of the whole library section.

positional arguments:
  {sections,server}     "sections": prints plex sections
                        "server": starts the application

optional arguments:
  -h, --help            show this help message and exit
  --config [CONFIG]     Config file location (default: config/config.json)
  --logfile [LOGFILE]   Log file location (default: plex_autoscan.log)
  --loglevel {WARN,INFO,DEBUG}
                        Log level (default: INFO)