File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,19 @@ def register_compose_up(subparsers: argparse._SubParsersAction, func: Callable |
88 info = "Start stack with docker compose"
99 parser = subparsers .add_parser ("compose-up" , help = info , description = info )
1010 parser .add_argument ("--build" , action = "store_true" , help = "Build images before starting" )
11- parser .add_argument ("--profile" , action = "append" , help = "Docker compose profile(s) to use" )
11+ parser .add_argument (
12+ "--profile" , action = "append" , default = [], help = "Docker compose profile(s) to use"
13+ )
1214 parser .set_defaults (func = func or commands .compose_up )
1315
1416
1517def register_compose_down (subparsers : argparse ._SubParsersAction , func : Callable | None = None ):
1618 info = "Stop stack with docker compose"
1719 parser = subparsers .add_parser ("compose-down" , help = info , description = info )
1820 parser .add_argument ("--cleanup" , action = "store_true" , help = "Remove orphans and volumes" )
19- parser .add_argument ("--profile" , action = "append" , help = "Docker compose profile(s) to use" )
21+ parser .add_argument (
22+ "--profile" , action = "append" , default = [], help = "Docker compose profile(s) to use"
23+ )
2024 parser .set_defaults (func = func or commands .compose_down )
2125
2226
You can’t perform that action at this time.
0 commit comments