Skip to content

Commit

Permalink
Manual actualizado
Browse files Browse the repository at this point in the history
  • Loading branch information
canuconde committed Dec 6, 2024
1 parent abd3831 commit 3dc3140
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 9 additions & 2 deletions man/eq4moc.1
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
.\" Manpage for eq4moc.
.\" Contact canu.conde@gmail.com to correct errors or typos.
.TH man 1 "14 Dec 2024" "0.9" "eq4moc man page"
.TH man 1 "14 Dec 2024" "1.0" "eq4moc man page"
.SH NAME
eq4moc - EQ for MOC
.SH SYNOPSIS
eq4moc [OPTIONS]
.SH DESCRIPTION
EQ for Moc is a terminal application to visualize and edit EQSET equalization files used by MoC (Music on Console).
.SH OPTIONS
The eq4moc does not take any options for the moment.
.TP
\fB\-T\fP \fITHEME\fP, \fB\-\-theme\fP \fITHEME\fP
Use a theme file. The file will be searched in \fB/usr/share/moc/themes/\fP and in \fB~/.moc/themes/\fP.
.LP
.TP
\fB\-v\fP, \fB\-\-version\fP
Print the program version and exit.
.LP
.SH ENVIRONMENT VARIABLES
.TP
.B HOME
Expand Down
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// If not, see <https://www.gnu.org/licenses/>.

#define PACKAGE_NAME "eq4moc - EQ for MOC"
#define PACKAGE_VERSION "0.9.1"
#define PACKAGE_VERSION "1.0"
#include <ncurses.h>
#include <string>
#include <iostream>
Expand Down Expand Up @@ -55,10 +55,10 @@ int main(int argc, char *argv[])
<< " License : GNU General Public License, version 3 or later\n"
<< endl;
return 0;
}else if(string(argv[i])=="-t" || string(argv[i])=="-T"){

}else if(string(argv[i])=="-t" || string(argv[i])=="-T" || string(argv[i])=="--theme"){
if(!argv[i+1]) return 1;
if(!moc_theme.chgTheme(argv[i+1])){
cout << "\t Theme file not fund." <<endl;
cout << "\t Theme file not found." <<endl;
return 1;
}

Expand Down

0 comments on commit 3dc3140

Please sign in to comment.