2 # ==============================================================================
3 # portsreinstall library script
4 # Overlay onto lib/libcommand.sh for portsreinstall-chroot-mount
5 # - Operations of commands as well as check of command line arguments -
6 # Copyright (C) 2018-2021 Mamoru Sakaue, MwGhennndo, All Rights Reserved.
7 # This software is distributed under the 2-Clause BSD License.
8 # ==============================================================================
10 # ============= Check and parse command line arguments =============
11 command_all_parse_args ()
14 COMMAND_MODE=${1:-mount}
18 _command_parse_args__chk_no_arg $#
21 message_echo "ERROR: Invalid command [$COMMAND_MODE]." >&2
25 COMMAND_SHIFT=$(($num_args_init - $#))
28 # ============= Execute command operations which do not need package tools =============
29 command_all_exec_without_pkgtools ()