Adding a version number

It is shown with --help. It's also available as $MO_VERSION when mo is
sourced.
This commit is contained in:
Tyler Akins 2017-11-30 05:43:10 -06:00
parent 57a8d41394
commit dbefade193
No known key found for this signature in database
GPG Key ID: 8F3B8C432F4393BD

3
mo
View File

@ -1030,11 +1030,14 @@ moTrimWhitespace() {
# Returns nothing.
moUsage() {
grep '^#/' "${MO_ORIGINAL_COMMAND}" | cut -c 4-
echo ""
set | grep ^MO_VERSION=
}
# Save the original command's path for usage later
MO_ORIGINAL_COMMAND="$(cd "${BASH_SOURCE[0]%/*}" || exit 1; pwd)/${BASH_SOURCE[0]##*/}"
MO_VERSION="2.0.4"
# If sourced, load all functions.
# If executed, perform the actions as expected.