maj template

This commit is contained in:
Jephte CLAIN 2014-01-17 19:02:34 +04:00
parent d359e613b4
commit e2d354dadb
1 changed files with 1 additions and 4 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8 # -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
source "$(dirname "$0")/ulib/ulib" || exit 1; urequire DEFAULTS
function display_help() { function display_help() {
uecho "$scriptname: uecho "$scriptname:
@ -10,10 +11,6 @@ USAGE
OPTIONS" OPTIONS"
} }
source "$(dirname "$0")/ulib/ulib" &&
urequire DEFAULTS ||
exit 1
parse_opts "${PRETTYOPTS[@]}" \ parse_opts "${PRETTYOPTS[@]}" \
--help '$exit_with display_help' \ --help '$exit_with display_help' \
@ args -- "$@" && set -- "${args[@]}" || die "$args" @ args -- "$@" && set -- "${args[@]}" || die "$args"