2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Add the --activate option into the test

This commit is contained in:
Victor Hu 2017-12-18 14:54:42 -05:00
parent 6ee77f1fbb
commit d533fee0b1

View File

@ -1180,7 +1180,7 @@ sub parse_args {
}
if (scalar @flash_arguments > 1) {
if (($option_flag =~ /^-a$|^--delete$/) or ($filename_passed and $option_flag !~ /^-d$/)) {
if (($option_flag =~ /^-a$|^--activate$|^--delete$/) or ($filename_passed and $option_flag !~ /^-d$/)) {
# Handles:
# - Multiple options not supported to activate/delete at the same time
# - Filename passed in and option is not -d for directory