From 7afd3efaeb584c415c60b756ad0da51050aeabbe Mon Sep 17 00:00:00 2001 From: Matthieu Muffato Date: Sun, 9 Oct 2022 14:25:25 +0100 Subject: [PATCH] Removed the `--view` option of `shpc install` as per https://github.com/singularityhub/singularity-hpc/pull/590#issuecomment-1272536735 --- shpc/client/__init__.py | 6 ------ shpc/client/install.py | 8 +------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/shpc/client/__init__.py b/shpc/client/__init__.py index d0e71e021..18eac8e32 100644 --- a/shpc/client/__init__.py +++ b/shpc/client/__init__.py @@ -101,12 +101,6 @@ def get_parser(): "install_recipe", help="recipe to install\nshpc install python\nshpc install python:3.9.5-alpine", ) - install.add_argument( - "--view", - dest="view", - help="install module to a named view (must be installed to shpc first).", - default=None, - ) install.add_argument( "--no-view", dest="no_view", diff --git a/shpc/client/install.py b/shpc/client/install.py index c67572893..e553b2d45 100644 --- a/shpc/client/install.py +++ b/shpc/client/install.py @@ -25,11 +25,5 @@ def main(args, parser, extra, subparser): # Update config settings on the fly cli.settings.update_params(args.config_params) - # It doesn't make sense to define view and no view - if args.view and args.no_view: - logger.exit("Conflicting arguments --view and --no-view, choose one.") - # And do the install - cli.install( - args.install_recipe, view=args.view, disable_view=args.no_view, force=args.force - ) + cli.install(args.install_recipe, disable_view=args.no_view, force=args.force)