Skip to content

dotnet-fm: How to pass in multiple -t tags? #1676

Answered by jzabroski
vmandic asked this question in Q&A
Discussion options

You must be logged in to vote

-t | --tag is an IEnumerable and takes a space-separated list of arguments after the initial parameter name, i.e., -t Tag1 Tag2

[Option("-t|--tag", Description = "Filters the migrations to be run by tag.")]

We use Nate McMaster's Command Line library, for which you can read here: https://natemcmaster.github.io/CommandLineUtils/docs/arguments.html#variable-numbers-of-arguments

Note, it is unfortunate the longform name of the parameter is just --tag, it should really be --tags. Happy to accept a PR to the fluentmigrator/documentation repo to provide examples.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vmandic
Comment options

Answer selected by jzabroski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1675 on September 15, 2023 19:06.