Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
add '--exclude-module' option for upc
Browse files Browse the repository at this point in the history
  • Loading branch information
blauerberg committed Mar 9, 2017
1 parent 96ae3cd commit f239a60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drush-scm
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def upc(args, config):
if args.module == 'all' or args.module != 'drupal':
if 'drupal' in modules:
modules.remove("drupal")

for module in args.exclude_module.split(","):
if module in modules:
modules.remove(module)

for module in modules:
name = json_status[module]["name"]
Expand Down Expand Up @@ -86,6 +90,8 @@ parser_upc = subparsers.add_parser('upc', help='Execute drush pm-updatecode and
parser_upc.set_defaults(func=upc)
parser_upc.add_argument('--module', action='store', default='all',
help='module name to update. If omitted, all modules expect core will be updated.')
parser_upc.add_argument('--exclude-module', action='store', default='',
help='module name that to be excluded from update. If multiple, it should be separated by a comma.')
parser_upc.add_argument('--version', action='store', default=False,
help='version of the module to update. If omitted, the latest version will be used.')
parser_upc.add_argument('--apply-non-security-update', action='store_true', default=False,
Expand Down

0 comments on commit f239a60

Please sign in to comment.