Diaoul / subliminal

Subtitles, faster than your thoughts
http://subliminal.readthedocs.org
MIT License
2.4k stars 312 forks source link

Configuration file for CLI #553

Closed Diaoul closed 4 months ago

Diaoul commented 8 years ago

Based on existing Config class

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

EnorMOZ commented 7 years ago

Just curious if there was any movement on this ?

getzze commented 4 months ago

implemented in develop in #1084 as '.toml` file

queeup commented 4 months ago

@getzze just to inform you https://github.com/Diaoul/subliminal/blob/main/subliminal/cli.py#L133 line is spamming --help output.

subliminal --help
Not using any configuration file.
Usage: subliminal [OPTIONS] COMMAND [ARGS]...

  Subtitles, faster than your thoughts.

Options:
  -c, --config FILE               Path to the TOML configuration file.  [default:
                                  /root/.config/subliminal/subliminal.toml]
  --cache-dir DIRECTORY           Path to the cache directory.  [default: /root/.cache/subliminal]
  Providers configuration: 
    --addic7ed USERNAME PASSWORD  Addic7ed configuration.
    --opensubtitles USERNAME PASSWORD
                                  OpenSubtitles configuration.
    --opensubtitlescom USERNAME PASSWORD
                                  OpenSubtitles.com configuration.
  Refiners configuration: 
    --omdb APIKEY                 OMDB API key.
  --debug                         Print useful information for debugging subliminal and for
                                  reporting bugs.
  --version                       Show the version and exit.
  --help                          Show this message and exit.

Commands:
  cache     Cache management.
  download  Download best subtitles.

  Suggestions and bug reports are greatly appreciated: https://github.com/Diaoul/subliminal/
getzze commented 4 months ago

Yes thanks, we'll correct thés forme thé next patch release

On 26 June 2024 02:46:22 GMT+01:00, queeup @.***> wrote:

@getzze just to inform you https://github.com/Diaoul/subliminal/blob/main/subliminal/cli.py#L133 line is spamming --help output.

subliminal --help
Not using any configuration file.
Usage: subliminal [OPTIONS] COMMAND [ARGS]...

 Subtitles, faster than your thoughts.

Options:
 -c, --config FILE               Path to the TOML configuration file.  [default:
                                 /root/.config/subliminal/subliminal.toml]
 --cache-dir DIRECTORY           Path to the cache directory.  [default: /root/.cache/subliminal]
 Providers configuration: 
   --addic7ed USERNAME PASSWORD  Addic7ed configuration.
   --opensubtitles USERNAME PASSWORD
                                 OpenSubtitles configuration.
   --opensubtitlescom USERNAME PASSWORD
                                 OpenSubtitles.com configuration.
 Refiners configuration: 
   --omdb APIKEY                 OMDB API key.
 --debug                         Print useful information for debugging subliminal and for
                                 reporting bugs.
 --version                       Show the version and exit.
 --help                          Show this message and exit.

Commands:
 cache     Cache management.
 download  Download best subtitles.

 Suggestions and bug reports are greatly appreciated: https://github.com/Diaoul/subliminal/

-- Reply to this email directly or view it on GitHub: https://github.com/Diaoul/subliminal/issues/553#issuecomment-2190375813 You are receiving this because you were mentioned.

Message ID: @.***>