mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
fix: add some more checks to freeze
This commit is contained in:
parent
28d67d9bed
commit
298e8b274c
1 changed files with 5 additions and 2 deletions
|
@ -948,10 +948,13 @@ class Viv:
|
||||||
|
|
||||||
def freeze(self, args: Namespace) -> None:
|
def freeze(self, args: Namespace) -> None:
|
||||||
"""create import statement from package spec"""
|
"""create import statement from package spec"""
|
||||||
|
# TODO: warn user about using anything but standalone when
|
||||||
|
# self.local_source is 'Not Found'
|
||||||
|
|
||||||
if not args.reqs:
|
if not args.reqs:
|
||||||
error("must specify a requirement")
|
error("must specify a requirement", code=1)
|
||||||
sys.exit(1)
|
if args.path and args.standalone:
|
||||||
|
error("-p/--path and -s/--standalone are mutually exclusive", code=1)
|
||||||
|
|
||||||
generate_import(
|
generate_import(
|
||||||
args.requirements,
|
args.requirements,
|
||||||
|
|
Loading…
Reference in a new issue