Skip to content

Commit

Permalink
Rename --render-tracks to --rendertracks.
Browse files Browse the repository at this point in the history
Follow convention of avoiding '-' in command names.
  • Loading branch information
rcorre committed Sep 5, 2015
1 parent 0ff490e commit 01ee3ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/lmms.1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ LMMS features components such as a Song Editor, a Beat+Bassline Editor, a Piano
.SH OPTIONS
.IP "\fB\-r, --render\fP \fIproject-file\fP
Render given file to either a wav\- or ogg\-file. See \fB\-f\fP for details
.IP "\fB\-r, --render-tracks\fP \fIproject-file\fP
.IP "\fB\-r, --rendertracks\fP \fIproject-file\fP
Render each track into a separate wav\- or ogg\-file. See \fB\-f\fP for details
.IP "\fB\-o, --output\fP \fIpath\fP
Render into \fIpath\fP
Expand Down
8 changes: 4 additions & 4 deletions src/core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ void printHelp()
" [ -h ]\n"
" [ <file to load> ]\n\n"
"-r, --render <project file> Render given project file\n"
" --render-tracks <project> Render each track to a different file\n"
" --rendertracks <project> Render each track to a different file\n"
"-o, --output <path> Render into <path>\n"
" For --render, provide a file path\n"
" For --render-tracks, provide a directory path\n"
" For --rendertracks, provide a directory path\n"
"-f, --format <format> Specify format of render-output where\n"
" Format is either 'wav' or 'ogg'.\n"
"-s, --samplerate <samplerate> Specify output samplerate in Hz\n"
Expand Down Expand Up @@ -190,7 +190,7 @@ int main( int argc, char * * argv )
{
coreOnly = true;
}
else if( arg == "--render-tracks" )
else if( arg == "--rendertracks" )
{
coreOnly = true;
renderTracks = true;
Expand Down Expand Up @@ -298,7 +298,7 @@ int main( int argc, char * * argv )

return EXIT_SUCCESS;
}
else if( arg == "--render" || arg == "-r" || arg == "--render-tracks" )
else if( arg == "--render" || arg == "-r" || arg == "--rendertracks" )
{
++i;

Expand Down

0 comments on commit 01ee3ea

Please sign in to comment.