Unified · Split
| @@ -49,7 +49,10 @@ SAVE=0 · 48 unmodified lines | ||
| 49 | 49 | unset PIC INPATH CUE CHARSET |
| 50 | 50 | FORCE=0 |
| 51 | 51 | |
| 52 | −HELP="\${cG}split2flac splits one big \${cU}APE/FLAC/WV\$cZ\$cG file to \${cU}FLAC/M4A/MP3/OGG_VORBIS\$cZ\$cG tracks with tagging and renaming. | |
| 52 | +VERSION=unknown | |
| 53 | + | |
| 54 | +HELP="\${cG}split2flac version: ${VERSION} | |
| 55 | +Splits one big \${cU}APE/FLAC/WV\$cZ\$cG file to \${cU}FLAC/M4A/MP3/OGG_VORBIS\$cZ\$cG tracks with tagging and renaming. | |
| 53 | 56 | |
| 54 | 57 | Usage: \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}FILE\$cZ [\${cU}OPTIONS\$cZ]\$cZ |
| 55 | 58 | \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}DIR\$cZ [\${cU}OPTIONS\$cZ]\$cZ |
| @@ -72,6 +75,7 @@ Usage: \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}FILE\$cZ [\${cU}OPTIO · 16 unmodified lines | ||
| 72 | 75 | \$cG-nocolors\$cZ \$cR*\$cZ - turn off colors |
| 73 | 76 | \$cG-s\$cZ - save configuration to \$cP\"\${CONFIG}\"\$cZ |
| 74 | 77 | \$cG-h\$cZ - print this message |
| 78 | + \$cG-v\$cZ - print version | |
| 75 | 79 | |
| 76 | 80 | \$cR*\$cZ - option affects configuration if \$cP'-s'\$cZ option passed. |
| 77 | 81 | \${cP}NOTE: \$cG'-c some_file.jpg -s'$cP only \${cU}allows\$cZ\$cP cover images, it doesn't set a default one. |
| @@ -126,6 +130,7 @@ while [ "$1" ]; do · 48 unmodified lines | ||
| 126 | 130 | -nocolors) NOCOLORS=1; update_colors;; |
| 127 | 131 | -s) SAVE=1;; |
| 128 | 132 | -h|--help|-help) eval "$msg \"${HELP}\""; exit 0;; |
| 133 | + -v|--version) $msg "split2${FORMAT} version: ${VERSION}"; exit 0;; | |
| 129 | 134 | -*) eval "$msg \"${HELP}\""; emsg "\nUnknown option $1"; exit 1;; |
| 130 | 135 | *) |
| 131 | 136 | if [ "${INPATH}" ]; then |