CLI
***

Subliminal uses click to provide a powerful CLI (command-line
interface).

class subliminal.cli.MutexLock(filename)

   "MutexLock" is a thread-based rw lock based on
   "dogpile.core.ReadWriteMutex".

   acquire_read_lock(wait)

      Acquire a ‘reader’ lock.

      Raises "NotImplementedError" by default, must be implemented by
      subclasses.

   acquire_write_lock(wait)

      Acquire a ‘write’ lock.

      Raises "NotImplementedError" by default, must be implemented by
      subclasses.

   release_read_lock()

      Release a ‘reader’ lock.

      Raises "NotImplementedError" by default, must be implemented by
      subclasses.

   release_write_lock()

      Release a ‘writer’ lock.

      Raises "NotImplementedError" by default, must be implemented by
      subclasses.

class subliminal.cli.Config(path)

   A "ConfigParser" wrapper to store configuration.

   Interaction with the configuration is done with the properties.

   Parameters:
      **path** (*str*) – path to the configuration file.

   path = None

      Path to the configuration file

   config = None

      The underlying configuration object

   read()

      Read the configuration from "path"

   write()

      Write the configuration to "path"

class subliminal.cli.LanguageParamType

   "ParamType" for languages that returns a "Language"

   convert(value, param, ctx)

      Converts the value.  This is not invoked for values that are
      *None* (the missing value).

class subliminal.cli.AgeParamType

   "ParamType" for age strings that returns a "timedelta"

   An age string is in the form *number + identifier* with possible
   identifiers:

      * "w" for weeks

      * "d" for days

      * "h" for hours

   The form can be specified multiple times but only with that
   idenfier ordering. For example:

      * "1w2d4h" for 1 week, 2 days and 4 hours

      * "2w" for 2 weeks

      * "3w6h" for 3 weeks and 6 hours

   convert(value, param, ctx)

      Converts the value.  This is not invoked for values that are
      *None* (the missing value).
