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..9e6e08ffe 100644 --- a/shpc/client/install.py +++ b/shpc/client/install.py @@ -3,7 +3,6 @@ __license__ = "MPL 2.0" import shpc.utils -from shpc.logger import logger def main(args, parser, extra, subparser): @@ -25,11 +24,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)