Renamed a couple of command line options to have a more consistent command line interface.

The old versions are still supported but not mentioned in the
documentation anymore.
This commit is contained in:
Moritz Bunkus 2009-05-31 18:21:40 +02:00
parent b129c3fcfa
commit feb085d055
6 changed files with 1960 additions and 1887 deletions

View File

@ -244,51 +244,51 @@ If splitting is not used then both do the same.
.LP .LP
Options that can be used for each input file: Options that can be used for each input file:
.TP .TP
\fB\-a\fR, \fB\-\-atracks\fR <\fIn\fR,\fIm\fR,...> \fB\-a\fR, \fB\-\-audio\-tracks\fR <\fIn\fR,\fIm\fR,...>
Copy the audio tracks \fIn\fR, \fIm\fR etc. The numbers are track IDs which Copy the audio tracks \fIn\fR, \fIm\fR etc. The numbers are track IDs which
can be obtained with the \fB\-\-identify\fR switch. They're \fBnot\fR simply can be obtained with the \fB\-\-identify\fR switch. They're \fBnot\fR simply
the track numbers (see section \fBTRACK IDS\fR). Default: copy all audio the track numbers (see section \fBTRACK IDS\fR). Default: copy all audio
tracks. tracks.
.TP .TP
\fB\-d\fR, \fB\-\-vtracks\fR <\fIn\fR,\fIm\fR,...> \fB\-d\fR, \fB\-\-video\-tracks\fR <\fIn\fR,\fIm\fR,...>
Copy the video tracks \fIn\fR, \fIm\fR etc. The numbers are track IDs which Copy the video tracks \fIn\fR, \fIm\fR etc. The numbers are track IDs which
can be obtained with the \fB\-\-identify\fR switch (see can be obtained with the \fB\-\-identify\fR switch (see
section \fBTRACK IDS\fR). They're \fBnot\fR simply section \fBTRACK IDS\fR). They're \fBnot\fR simply
the track numbers. Default: copy all video tracks. the track numbers. Default: copy all video tracks.
.TP .TP
\fB\-s\fR, \fB\-\-stracks\fR <\fIn\fR,\fIm\fR,...> \fB\-s\fR, \fB\-\-subtitle\-tracks\fR <\fIn\fR,\fIm\fR,...>
Copy the subtitle tracks \fIn\fR, \fIm\fR etc. The numbers are track IDs which Copy the subtitle tracks \fIn\fR, \fIm\fR etc. The numbers are track IDs which
can be obtained with the \fB\-\-identify\fR switch (see can be obtained with the \fB\-\-identify\fR switch (see
section \fBTRACK IDS\fR). They're \fBnot\fR simply section \fBTRACK IDS\fR). They're \fBnot\fR simply
the track numbers. Default: copy all subtitle tracks. the track numbers. Default: copy all subtitle tracks.
.TP .TP
\fB\-b\fR, \fB\-\-btracks\fR <\fIn\fR,\fIm\fR,...> \fB\-b\fR, \fB\-\-button\-tracks\fR <\fIn\fR,\fIm\fR,...>
Copy the button tracks \fIn\fR, \fIm\fR etc. Copy the button tracks \fIn\fR, \fIm\fR etc.
The numbers are track IDs which can be obtained with the \fB\-\-identify\fR The numbers are track IDs which can be obtained with the \fB\-\-identify\fR
switch (see section \fBTRACK IDS\fR). switch (see section \fBTRACK IDS\fR).
They're \fBnot\fR simply the track numbers. They're \fBnot\fR simply the track numbers.
Default: copy all button tracks. Default: copy all button tracks.
.TP .TP
\fB\-A\fR, \fB\-\-noaudio\fR \fB\-A\fR, \fB\-\-no-audio\fR
Don't copy any audio track from this file. Don't copy any audio track from this file.
.TP .TP
\fB\-D\fR, \fB\-\-novideo\fR \fB\-D\fR, \fB\-\-no-video\fR
Don't copy any video track from this file. Don't copy any video track from this file.
.TP .TP
\fB\-S\fR, \fB\-\-nosubs\fR \fB\-S\fR, \fB\-\-no-subtitles\fR
Don't copy any subtitle track from this file. Don't copy any subtitle track from this file.
.TP .TP
\fB\-B\fR, \fB\-\-nobuttons\fR \fB\-B\fR, \fB\-\-no-buttons\fR
Don't copy any button track from this file. Don't copy any button track from this file.
.TP .TP
\fB\-\-no\-chapters\fR \fB\-\-no\-chapters\fR
If the source is a Matroska file then don't copy chapters from it. Don't copy chapters from this file.
.TP .TP
\fB\-\-no\-attachments\fR \fB\-\-no\-attachments\fR
If the source is a Matroska file then don't copy attachments from it. Don't copy attachments from this file.
.TP .TP
\fB\-\-no\-tags\fR \fB\-\-no\-tags\fR
If the source is a Matroska file then don't copy tags from it. Don't copy global tags from this file.
.TP .TP
\fB\-y\fR, \fB\-\-sync\fR <\fITID\fR:\fId\fR[,\fIo\fR[/\fIp\fR]]> \fB\-y\fR, \fB\-\-sync\fR <\fITID\fR:\fId\fR[,\fIo\fR[/\fIp\fR]]>
Adjust the timecodes of the track with the id \fITID\fR by \fId\fR Adjust the timecodes of the track with the id \fITID\fR by \fId\fR

905
po/de.po

File diff suppressed because it is too large Load Diff

908
po/ja.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -189,18 +189,22 @@ set_usage() {
" firsts Matroska file written.\n"); " firsts Matroska file written.\n");
usage_text += "\n"; usage_text += "\n";
usage_text += Y(" Options for each input file:\n"); usage_text += Y(" Options for each input file:\n");
usage_text += Y(" -a, --atracks <n,m,...> Copy audio tracks n,m etc. Default: copy all\n" usage_text += Y(" -a, --audio-tracks <n,m,...>\n"
" Copy audio tracks n,m etc. Default: copy all\n"
" audio tracks.\n"); " audio tracks.\n");
usage_text += Y(" -A, --noaudio Don't copy any audio track from this file.\n"); usage_text += Y(" -A, --no-audio Don't copy any audio track from this file.\n");
usage_text += Y(" -d, --vtracks <n,m,...> Copy video tracks n,m etc. Default: copy all\n" usage_text += Y(" -d, --video-tracks <n,m,...>\n"
" Copy video tracks n,m etc. Default: copy all\n"
" video tracks.\n"); " video tracks.\n");
usage_text += Y(" -D, --novideo Don't copy any video track from this file.\n"); usage_text += Y(" -D, --no-video Don't copy any video track from this file.\n");
usage_text += Y(" -s, --stracks <n,m,...> Copy subtitle tracks n,m etc. Default: copy\n" usage_text += Y(" -s, --subtitle-tracks <n,m,...>\n"
" Copy subtitle tracks n,m etc. Default: copy\n"
" all subtitle tracks.\n"); " all subtitle tracks.\n");
usage_text += Y(" -S, --nosubs Don't copy any text track from this file.\n"); usage_text += Y(" -S, --no-subtitles Don't copy any subtitle track from this file.\n");
usage_text += Y(" -b, --btracks <n,m,...> Copy buttons tracks n,m etc. Default: copy\n" usage_text += Y(" -b, --button-tracks <n,m,...>\n"
" Copy buttons tracks n,m etc. Default: copy\n"
" all buttons tracks.\n"); " all buttons tracks.\n");
usage_text += Y(" -B, --nobuttons Don't copy any buttons track from this file.\n"); usage_text += Y(" -B, --no-buttons Don't copy any buttons track from this file.\n");
usage_text += Y(" -m, --attachments <n[:all|first],m[:all|first],...>\n" usage_text += Y(" -m, --attachments <n[:all|first],m[:all|first],...>\n"
" Copy the attachments with the IDs n, m etc to\n" " Copy the attachments with the IDs n, m etc to\n"
" all or only the first output file. Default: copy\n" " all or only the first output file. Default: copy\n"
@ -1835,40 +1839,40 @@ parse_args(std::vector<std::string> args) {
} }
// Options that apply to the next input file only. // Options that apply to the next input file only.
else if ((this_arg == "-A") || (this_arg == "--noaudio")) else if ((this_arg == "-A") || (this_arg == "--noaudio") || (this_arg == "--no-audio"))
ti->no_audio = true; ti->no_audio = true;
else if ((this_arg == "-D") || (this_arg == "--novideo")) else if ((this_arg == "-D") || (this_arg == "--novideo") || (this_arg == "--no-video"))
ti->no_video = true; ti->no_video = true;
else if ((this_arg == "-S") || (this_arg == "--nosubs")) else if ((this_arg == "-S") || (this_arg == "--nosubs") || (this_arg == "--no-subs") || (this_arg == "--no-subtitles"))
ti->no_subs = true; ti->no_subs = true;
else if ((this_arg == "-B") || (this_arg == "--nobuttons")) else if ((this_arg == "-B") || (this_arg == "--nobuttons") || (this_args == "--no-buttons"))
ti->no_buttons = true; ti->no_buttons = true;
else if ((this_arg == "-a") || (this_arg == "--atracks")) { else if ((this_arg == "-a") || (this_arg == "--atracks") || (this_arg == "--audio-tracks")) {
if (no_next_arg) if (no_next_arg)
mxerror(boost::format(Y("'%1%' lacks the track number(s).\n")) % this_arg); mxerror(boost::format(Y("'%1%' lacks the track number(s).\n")) % this_arg);
parse_arg_tracks(next_arg, ti->atracks, this_arg); parse_arg_tracks(next_arg, ti->atracks, this_arg);
sit++; sit++;
} else if ((this_arg == "-d") || (this_arg == "--vtracks")) { } else if ((this_arg == "-d") || (this_arg == "--vtracks") || (this_arg == "--video-tracks")) {
if (no_next_arg) if (no_next_arg)
mxerror(boost::format(Y("'%1%' lacks the track number(s).\n")) % this_arg); mxerror(boost::format(Y("'%1%' lacks the track number(s).\n")) % this_arg);
parse_arg_tracks(next_arg, ti->vtracks, this_arg); parse_arg_tracks(next_arg, ti->vtracks, this_arg);
sit++; sit++;
} else if ((this_arg == "-s") || (this_arg == "--stracks")) { } else if ((this_arg == "-s") || (this_arg == "--stracks") || (this_arg == "--sub-tracks") || (this_arg == "--subtitle-tracks")) {
if (no_next_arg) if (no_next_arg)
mxerror(boost::format(Y("'%1%' lacks the track number(s).\n")) % this_arg); mxerror(boost::format(Y("'%1%' lacks the track number(s).\n")) % this_arg);
parse_arg_tracks(next_arg, ti->stracks, this_arg); parse_arg_tracks(next_arg, ti->stracks, this_arg);
sit++; sit++;
} else if ((this_arg == "-b") || (this_arg == "--btracks")) { } else if ((this_arg == "-b") || (this_arg == "--btracks") || (this_arg == "--button-tracks")) {
if (no_next_arg) if (no_next_arg)
mxerror(boost::format(Y("'%1%' lacks the track number(s).\n")) % this_arg); mxerror(boost::format(Y("'%1%' lacks the track number(s).\n")) % this_arg);