Skip to content

Commit

Permalink
More argument logic cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
defjaf committed Jan 15, 2019
1 parent 678a2e2 commit 2cf809f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pip_upgrade_outdated/upgrade_pip_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ def main():
parser.add_argument('--exclude', '-x', action='append', metavar='PKG', help='exclude PKG; may be specified multiple times')

args, pip_args = parser.parse_known_args()

if args.parallel or args.sequential:
## special case since is the default of the mutually exclusive group above
args.serial = False

pip_cmd = args.pip_cmd

Expand Down Expand Up @@ -167,7 +171,6 @@ def main():
pool.close()
pool.join()
elif args.sequential:
### note that order matters here since args.serial defaults to True
if args.verbose > 1:
print("Sequential execution")
# Upgrade each package as a separate command in case one package fails to upgrade, others still are upgraded
Expand Down

0 comments on commit 2cf809f

Please sign in to comment.