Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Support for boolean options as flags (instead of string True/False values) #546

@aguschin

Description

@aguschin

Error with --current_env in mlem build venv
The docs indicate the option is boolean:
--current_env: Whether to install in the current virtual env, must be active [default: False]
but:

$ mlem build venv --model lyrics2emoji --current_env
╭─ Error ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Option '--current_env' requires an argument.                                                                                                         │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
$ mlem build venv --model lyrics2emoji --current_env True
⏳️ Loading model from lyrics2emoji.mlem
💼 Detected the virtual env /Users/aguschin/Git/iterative/mlem/emoji/.venv
💼 Installing the required packages...
......

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuildExporting models (building model packages)cliMLEM command-line interfacep3-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions