Standardized options position in export/import commands, improve option checks

This commit is contained in:
JRGTH
2021-07-08 13:48:02 -04:00
parent 9e3ad27ecf
commit b0f947ca00
3 changed files with 59 additions and 20 deletions

View File

@@ -135,10 +135,10 @@ version|-v|--version)
help|-h|--help)
usage
;;
bootstrap|create|destroy|import|list|rdr|restart|start|update|upgrade|verify)
bootstrap|create|destroy|export|import|list|rdr|restart|start|update|upgrade|verify)
# Nothing "extra" to do for these commands. -- cwells
;;
clone|config|cmd|console|convert|cp|edit|export|htop|limits|mount|pkg|rename|service|stop|sysrc|template|top|umount|zfs)
clone|config|cmd|console|convert|cp|edit|htop|limits|mount|pkg|rename|service|stop|sysrc|template|top|umount|zfs)
# Parse the target and ensure it exists. -- cwells
if [ $# -eq 0 ]; then # No target was given, so show the command's help. -- cwells
PARAMS='help'