Skip to content

Commit

Permalink
Removed the --view option of shpc install
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Oct 9, 2022
1 parent 5d0ab45 commit 7afd3ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
6 changes: 0 additions & 6 deletions shpc/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 1 addition & 7 deletions shpc/client/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 7afd3ef

Please sign in to comment.