|
@ -24,7 +24,7 @@ |
|
|
create_usage() { |
|
|
create_usage() { |
|
|
local progname=$(echo ${0##*/} | tr '-' ' ') |
|
|
local progname=$(echo ${0##*/} | tr '-' ' ') |
|
|
cat <<-EOT |
|
|
cat <<-EOT |
|
|
Usage: $progname [--{dvd|dvd-dl|cd|cd74|cd90|cd99|size n}] [--format <format>] --name <name> --config <config> [<config>....]" |
|
|
|
|
|
|
|
|
Usage: $progname [-s {dvd|dvd-dl|cd|cd74|cd90|cd99| n}] [-f <format>] -n <name> -c <config> [<config>....]" |
|
|
Size: |
|
|
Size: |
|
|
dvd - 4.38GB |
|
|
dvd - 4.38GB |
|
|
dvd-dl - 7.95GB |
|
|
dvd-dl - 7.95GB |
|
@ -43,8 +43,8 @@ create_usage() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
longopts='[dvd,dvd-dl,cd,cd74,cd90,cd99,size:,format:,name:,config:' |
|
|
longopts='[dvd,dvd-dl,cd,cd74,cd90,cd99,size:,format:,name:,config:' |
|
|
shortopts= |
|
|
|
|
|
options=$( getopt -o "$shortopts" -l "$longopts" -- "$@" ) |
|
|
|
|
|
|
|
|
shortopts='h,s:f:,n:,c:' |
|
|
|
|
|
options=$( getopt -o "$shortopts" -- "$@" ) |
|
|
if [ $? -ne 0 ]; then |
|
|
if [ $? -ne 0 ]; then |
|
|
create_usage |
|
|
create_usage |
|
|
exit -1 |
|
|
exit -1 |
|
@ -58,7 +58,7 @@ name= |
|
|
configs= |
|
|
configs= |
|
|
while [ $# -gt 0 ]; do |
|
|
while [ $# -gt 0 ]; do |
|
|
case "$1" in |
|
|
case "$1" in |
|
|
help) |
|
|
|
|
|
|
|
|
-h) |
|
|
create_usage |
|
|
create_usage |
|
|
exit 0 ;; |
|
|
exit 0 ;; |
|
|
*) echo_abort 1 "$1: Unknown argument, aborting." |
|
|
*) echo_abort 1 "$1: Unknown argument, aborting." |
|
|