Skip to content

Add mage flags to the compiled mage binary #180

@zbindenren

Description

@zbindenren

When I run mage I can do the following:

mage -l
Targets:
  build      Builds the holidays binary.
  deps       Installs go dependencies.
  docker     Build Docker image.
  test       Run all go tests.

When I compile the mage file I do not have the mage flags anymore:

mage -compile mg
./mg -l
Unknown target specified: -l
./mg -v deps
Unknown target specified: -v

Would be great if one can still use the flagse (-v for example).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions