movie-rename/movie-rename.1

41 lines
1.4 KiB
Groff
Raw Permalink Normal View History

2022-12-09 15:02:20 -06:00
.\" Manpage for movie-rename.
2022-12-08 21:59:53 -06:00
.\" Contact sayantan[dot]santra689[at]gmail[dot]com to correct errors or typos.
2023-02-25 22:45:59 -06:00
.TH man 1 "February 2023" "movie-rename"
2022-12-08 21:59:53 -06:00
.SH NAME
2022-12-09 15:02:20 -06:00
movie-rename
2022-12-08 21:59:53 -06:00
.SH SYNOPSIS
2022-12-09 15:02:20 -06:00
movie-rename <filename(s)> [-n|--dry-run] [-d|--directory] [-h|--help] [-v|--version]
2022-12-08 21:59:53 -06:00
.SH DESCRIPTION
2022-12-09 15:02:20 -06:00
movie-rename is a simple tool to rename movies, written in Rust.
2022-12-08 21:59:53 -06:00
.SH ARGUMENTS
A list of filenames (or directory names, not both). -d or --directory must be passed to work with directories.
.SH OPTIONS
.TP
-n, --dry-run
Performs a dry run, without actually renaming anything.
.TP
2022-12-08 23:57:49 -06:00
-d, --directory
2022-12-08 21:59:53 -06:00
Runs in directory mode. In this mode, it is assumed that the arguments are directory names, which contain exactly one movie and optionally subtitles.
.TP
2022-12-10 18:39:33 -06:00
-dn, -nd
Performs a dry run in directory mode.
.TP
2022-12-08 21:59:53 -06:00
-h, --help
Print help information.
.TP
-v, --version
Print version information.
.SH CONFIG
2022-12-10 18:39:33 -06:00
There needs to be a config file named config in the $XDG_CONFIG_HOME/movie-rename/ directory.
2022-12-08 21:59:53 -06:00
It should consist of two lines.
.sp
The first line should have your TMDb API key.
.sp
The second line should have a pattern, that will be used for the rename.
.sp
In the pattern, the variables need to be enclosed in {}, the supported variables are `title`, `year` and `director`.
.sp
Default pattern is `{title} ({year}) - {director}`. Extension is always kept.
.SH AUTHOR
Sayantan Santra sayantan[dot]santra689[at]gmail[dot]com