History

version printing (it should be replaced with actual version by packet manager, etc.)

Serge Zirukin committed 16 years ago

Commit 23b9fa21 parent 062ef241 file · +6 −1Browse files

Unified · Split

split2flac.sh+6−1
@@ -49,7 +49,10 @@ SAVE=0 · 48 unmodified lines
4949 unset PIC INPATH CUE CHARSET
5050 FORCE=0
5151
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.
5356
5457 Usage: \${cZ}split2\${FORMAT}.sh [\${cU}OPTIONS\$cZ] \${cU}FILE\$cZ [\${cU}OPTIONS\$cZ]\$cZ
5558 \${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
7275 \$cG-nocolors\$cZ \$cR*\$cZ - turn off colors
7376 \$cG-s\$cZ - save configuration to \$cP\"\${CONFIG}\"\$cZ
7477 \$cG-h\$cZ - print this message
78+ \$cG-v\$cZ - print version
7579
7680 \$cR*\$cZ - option affects configuration if \$cP'-s'\$cZ option passed.
7781 \${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
126130 -nocolors) NOCOLORS=1; update_colors;;
127131 -s) SAVE=1;;
128132 -h|--help|-help) eval "$msg \"${HELP}\""; exit 0;;
133+ -v|--version) $msg "split2${FORMAT} version: ${VERSION}"; exit 0;;
129134 -*) eval "$msg \"${HELP}\""; emsg "\nUnknown option $1"; exit 1;;
130135 *)
131136 if [ "${INPATH}" ]; then

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t