module Subtitles::Config

Defined in:

config.cr

Constant Summary

HELP_TEXT = "subtitles.cr -- convert between subtitles formats\n\nUsage: subtitles /path/to/original.subtitles /path/to/output.format\n\n...where the .format value indicates the filetype you wish to output. The\ninput filetype will be automatically detected from the file contents.\n\nAvailable formats:\n - .srt -- SubRip subtitles\n - .ass and .ssa -- Substation Alpha subtitles\n - .json -- A JSON representation of the internal intermediary\n format.\n\nOptionally one can specify the `--to` option, to specify an output format.\nThe --to option takes the place of the file extension for a file which\ndoesn't have one.\n"

Class Method Summary

Class Method Detail

def self.command_line_interface(args = ARGV) #

Run the CLI on the specified args


[View source]
def self.from_args=(from_args : Bool) #

Set to false to disable gathering command line arguments


[View source]
def self.from_args? : Bool #

Set to false to disable gathering command line arguments


[View source]
def self.log_file : IO #

where to output any logging info.


[View source]
def self.log_level : Logger::Severity #

The amount of debugging information to log


[View source]
def self.logger : Logger #

A global(-ish) Logger instance


[View source]