24 struct stat readBuffer;
26 if( stat( dirOut.c_str(), &readBuffer ) != 0 )
29 tmpCmd =
MKDIR" \"" + dirOut +
"\"";
31 charCmd = tmpCmd.c_str();
39 if ( system( charCmd ) == 0 ) {};
55 cout <<
"Usage: clerk [OPTION] -i [INPUT] -o [OUTPUT]" << endl
56 <<
"Move, rename, and organize TV Show files from [INPUT] to [OUTPUT]." << endl
58 <<
"Available arguments:" << endl
60 <<
" -i [INPUT]\tRead from file or directory" << endl
61 <<
" -o [OUTPUT]\tWrite to directory" << endl
62 <<
" -B [BLIST]\tBlacklist location" << endl
63 <<
" -S [SLIST]\tShowlist location" << endl
64 <<
" -R\t\tRecurse directories" << endl
65 <<
" -e\t\tExecute the tasks internally" << endl
66 <<
" -t\t\tDisplay the tasks without performing them" << endl
67 <<
" -b [SCRIPT]\tWrite the tasks to a bash script" << endl
68 <<
" -r\t\tRename the files" << endl
69 <<
" -m\t\tMove the files" << endl
70 <<
" -c\t\tCopy the files" << endl
71 <<
" -D\t\tSeason folders use double digits" << endl
72 <<
" -q\t\tOutput no information" << endl
73 <<
" -s\t\tOutput summary information" << endl
74 <<
" -v\t\tOutput summary and error information" << endl
75 <<
" -l [LOG]\tWrite to log file" << endl
76 <<
" -x [XML]\tWrite to xml file" << endl
77 <<
" -g [GAP]\tWrite to gap file" << endl
78 <<
" -h\t\tDisplay this help and exit" << endl
79 <<
" -V\t\tOutput version information and exit" << endl
80 <<
" -F [DEST]\tRewrite showlist, blacklist, and config files to DEST" << endl
83 <<
"[INPUT] can be either a directory or a file containing a list of shows." << endl
84 <<
"By default, files in [INPUT] are sorted into directories based on" << endl
85 <<
"show name and season as detected by the clerk." << endl
87 <<
"Accepted season and episode patterns:" << endl
88 <<
" S##E## (default output format)" << endl
97 <<
" -## (detected as multi-episode information)" << endl
98 <<
" A/B (detected as partial-episode information)" << endl
100 <<
"Example Output:" << endl
101 <<
" Showname S01E01 Title.avi" << endl
102 <<
" Showname S01E01-02 Title.avi" << endl
103 <<
" Showname S01E01B Title.avi" << endl
105 <<
"Report clerk bugs to erythros@gmail.com or emrysm@gmail.com" << endl;
112 cout <<
"clerk 0.37.154" << endl
113 <<
"Copyright (C) 2010 Free Software Foundation, Inc." << endl
114 <<
"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>." << endl
115 <<
"This is free software: you are free to change and redistribute it." << endl
116 <<
"There is NO WARRANTY, to the extent permitted by law." << endl
118 <<
"Written by Emrys Maier and Erick Tyndall." << endl;
static void printVersion()
Outputs the version information to the console.
static void writeFout(string)
Recreates the showlist, blacklist, and configuration files.
static void writeConfigFile(string)
Generates a default configuration file in the given directory.
static void writeShowList(string)
Generates a default showlist file in a given directory.
static void writeBlackList(string)
Generates a default blacklist file in the given directory.
The ConfigOpts class stores all config options, settings, and flags for clerk.
static void printHelp()
Outputs the help information to the console.