@@ -54,7 +54,7 @@ def get_parser():
5454 help = 'specify project name (defaults to $PWD)' )
5555
5656 parser .add_argument ("--project-directory" , default = None ,
57- dest = 'project_dir ' , type = str ,
57+ dest = 'working_dir ' , type = str ,
5858 help = 'specify project working directory (defaults to compose file location)' )
5959
6060 parser .add_argument ("--env-file" , default = None ,
@@ -82,19 +82,21 @@ def get_parser():
8282 config = subparsers .add_parser ("config" ,
8383 help = "Validate and view the compose file" )
8484
85- # Create
85+ # Create (assumes built already)
8686
8787 create = subparsers .add_parser ("create" ,
8888 help = "create instances" )
8989
90+ # Down
91+
9092 down = subparsers .add_parser ("down" ,
9193 help = "stop instances" )
9294
9395 execute = subparsers .add_parser ("exec" ,
94- help = "execute a command to a container " )
96+ help = "execute a command to an instance " )
9597
9698 images = subparsers .add_parser ("images" ,
97- help = "list images " )
99+ help = "list running instances " )
98100
99101 kill = subparsers .add_parser ("kill" ,
100102 help = "kill instances" )
@@ -106,22 +108,18 @@ def get_parser():
106108 help = "list instances" )
107109
108110 restart = subparsers .add_parser ("restart" ,
109- help = "restart images " )
111+ help = "stop and start containers. " )
110112
111113 rm = subparsers .add_parser ("rm" ,
112114 help = "remove non-running container images" )
113115
114- stop = subparsers .add_parser ("stop" ,
115- help = "stop running containers" )
116-
117116 up = subparsers .add_parser ("up" ,
118117 help = "build and start containers" )
119118
120-
121- # Add a context to relevant subparsers
122- for sub in [config , build ]:
123- sub .add_argument ('context' , nargs = 1 ,
124- help = 'the context for the command (e.g., . means pwd)' )
119+ # Add list of names
120+ for sub in [create , down , up ]:
121+ sub .add_argument ('names' , nargs = "?" ,
122+ help = 'the names of the instances to target' )
125123
126124 return parser
127125
0 commit comments