fix: cmd -> subcmd

This commit is contained in:
Daylin Morgan 2023-06-01 14:44:21 -05:00
parent 4a1f01f459
commit 3cf2dce767
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -50,7 +50,7 @@ from typing import (
from urllib.error import HTTPError
from urllib.request import urlopen
__version__ = "23.5a4-29-g0ccf72c-dev"
__version__ = "23.5a4-29-g4a1f01f-dev"
class Config:
@ -1411,7 +1411,7 @@ class Cli:
error("-p/--path and -s/--standalone are mutually exclusive", code=1)
if args.func.__name__ == "manage":
if args.cmd == "install" and self.viv.local_source:
if args.subcmd == "install" and self.viv.local_source:
error(f"found existing viv installation at {self.viv.local_source}")
echo(
"use "
@ -1420,7 +1420,7 @@ class Cli:
style="red",
)
sys.exit(1)
if args.cmd == "update":
if args.subcmd == "update":
if not self.viv.local_source:
error(
a.style("viv manage update", "bold")