Commit 147b4fef authored by Canek Peláez's avatar Canek Peláez
Browse files

Use new ExitCodes.

parent 3605c4d0
Loading
Loading
Loading
Loading

lib/mlm/exit-code.vala

0 → 100644
+50 −0
Original line number Diff line number Diff line
/* exit-code.vala - This file is part of mlm.
 *
 * Copyright © 2013-2018 Canek Peláez Valdés
 *
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * Author:
 *    Canek Peláez Valdés <canek@ciencias.unam.mx>
 */

namespace MLM {

    /**
     * Exit code enumeration.
     */
    public enum ExitCode {
        A_OK                = 0,
        COPY_ERROR          = 100,
        IMAGE_FOR_MANY      = 101,
        INVALID_ARGUMENT    = 102,
        INVALID_DESTINATION = 103,
        INVALID_DISC        = 104,
        INVALID_GENRE       = 105,
        INVALID_IMAGE_FILE  = 106,
        INVALID_OUTPUT_DIR  = 107,
        INVALID_TRACK       = 108,
        INVALID_YEAR        = 109,
        MISSING_ARGUMENT    = 110,
        MISSING_FILES       = 111,
        MISSING_OUTPUT_DIR  = 112,
        NOT_ENOUGH_INFO     = 113,
        NO_ID3_PICTURE      = 114,
        NO_ID3_TAGS         = 115,
        NO_IMAGE_FILE       = 116,
        NO_SUCH_FILE        = 117,
        READING_ERROR       = 118,
        WRITING_ERROR       = 119;
    }
}
+5 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@

    <title>Description</title>

    <para><filename>mlm-analyze</filename> is a command line tool to analyze in
    <para><command>mlm-analyze</command> is a command line tool to analyze in
    detail the Id3v2.4.0 tags of one or more MP3 files.</para>

  </refsect1>
@@ -86,6 +86,10 @@
  <refsect1>
    <title>See Also</title>
    <para>
      <citerefentry>
        <refentrytitle>mlm-arrange</refentrytitle>
        <manvolnum>1</manvolnum>
      </citerefentry>.
      <citerefentry>
        <refentrytitle>mlm-copy-tags</refentrytitle>
        <manvolnum>1</manvolnum>
+6 −6
Original line number Diff line number Diff line
@@ -94,26 +94,26 @@
            <entry>Album:</entry>
            <entry>Amores Perros</entry>
          </row>
          <row>
            <entry>Album band:</entry>
            <entry>Various</entry>
          </row>
          <row>
            <entry>Year:</entry>
            <entry>2000</entry>
          </row>
          <row>
            <entry>Track:</entry>
            <entry>6 of 12</entry>
            <entry>2 of 18</entry>
          </row>
          <row>
            <entry>Disc number:</entry>
            <entry>2</entry>
            <entry>1</entry>
          </row>
          <row>
            <entry>Genre:</entry>
            <entry>Hip-Hop</entry>
          </row>
          <row>
            <entry>Comment:</entry>
            <entry>Con Ely Guerra</entry>
          </row>
        </tbody>
      </tgroup>
    </table>
+5 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@

    <title>Description</title>

    <para><filename>mlm-copy-tags</filename> is a command line tool to copy the
    <para><command>mlm-copy-tags</command> is a command line tool to copy the
    Id3v2.4.0 tags from a source file to a target file.</para>

  </refsect1>
@@ -90,6 +90,10 @@
        <refentrytitle>mlm-analyze</refentrytitle>
        <manvolnum>1</manvolnum>
      </citerefentry>,
      <citerefentry>
        <refentrytitle>mlm-arrange</refentrytitle>
        <manvolnum>1</manvolnum>
      </citerefentry>,
      <citerefentry>
        <refentrytitle>mlm-tags</refentrytitle>
        <manvolnum>1</manvolnum>
+5 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@

    <title>Description</title>

    <para><filename>mlm-tags</filename> is a command line tool to show and edit
    <para><command>mlm-tags</command> is a command line tool to show and edit
    the standard tags of one or more MP3 files.</para>

  </refsect1>
@@ -967,6 +967,10 @@
        <refentrytitle>mlm-analyze</refentrytitle>
        <manvolnum>1</manvolnum>
      </citerefentry>,
      <citerefentry>
        <refentrytitle>mlm-arrange</refentrytitle>
        <manvolnum>1</manvolnum>
      </citerefentry>,
      <citerefentry>
        <refentrytitle>mlm-copy-tags</refentrytitle>
        <manvolnum>1</manvolnum>
Loading