main.cpp: consistent naming
This commit is contained in:
parent
b89c676145
commit
b53da59999
10
src/main.cpp
10
src/main.cpp
@ -15,12 +15,12 @@ const std::string githash("HASHSTRING");
|
|||||||
void show_usage()
|
void show_usage()
|
||||||
{
|
{
|
||||||
std::cout<<"\n"
|
std::cout<<"\n"
|
||||||
<<"tdmripper ["<<gittag<<"-g"<<githash<<"] (github.com/RecordEvolution/tdm_ripper.git)"
|
<<"tdmreaper ["<<gittag<<"-g"<<githash<<"] (github.com/RecordEvolution/tdm_ripper.git)"
|
||||||
<<"\n\n"
|
<<"\n\n"
|
||||||
<<"Decode TDM/TDX files and dump data as *.csv"
|
<<"Decode TDM/TDX files and dump data as *.csv"
|
||||||
<<"\n\n"
|
<<"\n\n"
|
||||||
<<"Usage:\n\n"
|
<<"Usage:\n\n"
|
||||||
<<" tdmripper [options] <tdm-file> <tdx-file>"
|
<<" tdmreaper [options] <tdm-file> <tdx-file>"
|
||||||
<<"\n\n"
|
<<"\n\n"
|
||||||
<<"Options:"
|
<<"Options:"
|
||||||
<<"\n\n"
|
<<"\n\n"
|
||||||
@ -42,7 +42,7 @@ void show_usage()
|
|||||||
typedef std::map<std::string,std::string> optkeys;
|
typedef std::map<std::string,std::string> optkeys;
|
||||||
|
|
||||||
const std::string argmsg = std::string("both .tdm and .tdx file (and maybe any valid option) must be provided!");
|
const std::string argmsg = std::string("both .tdm and .tdx file (and maybe any valid option) must be provided!");
|
||||||
const std::string arguse = std::string("see $ tdmripper --help for usage");
|
const std::string arguse = std::string("see $ tdmreaper --help for usage");
|
||||||
|
|
||||||
optkeys parse_args(int argc, char* argv[], bool showargs = false)
|
optkeys parse_args(int argc, char* argv[], bool showargs = false)
|
||||||
{
|
{
|
||||||
@ -65,7 +65,7 @@ optkeys parse_args(int argc, char* argv[], bool showargs = false)
|
|||||||
else if ( std::string(argv[1]) == std::string("--version")
|
else if ( std::string(argv[1]) == std::string("--version")
|
||||||
|| std::string(argv[1]) == std::string("-v") )
|
|| std::string(argv[1]) == std::string("-v") )
|
||||||
{
|
{
|
||||||
std::cout<<"tdmripper "<<gittag<<"\n";
|
std::cout<<"tdmreaper "<<gittag<<"\n";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -176,7 +176,7 @@ int main(int argc, char* argv[])
|
|||||||
// bool listgroups = cfgopts.count("listgroups") == 1 ? true : false;
|
// bool listgroups = cfgopts.count("listgroups") == 1 ? true : false;
|
||||||
// bool listchannels = cfgopts.count("listchannels") == 1 ? true : false;
|
// bool listchannels = cfgopts.count("listchannels") == 1 ? true : false;
|
||||||
|
|
||||||
// declare and initialize tdm_ripper instance
|
// declare and initialize tdm_reaper instance
|
||||||
tdm_reaper jack;
|
tdm_reaper jack;
|
||||||
try {
|
try {
|
||||||
jack.submit_files(cfgopts.at("tdm"),cfgopts.at("tdx"),false);
|
jack.submit_files(cfgopts.at("tdm"),cfgopts.at("tdx"),false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user