@@ -215,19 +215,11 @@ def create(ctx, project, public, from_dir):
215215
216216
217217@cli .command ()
218- @click .option (
219- "--flag" ,
220- help = "What kind of projects (e.g. 'created' for just my projects,"
221- "'shared' for projects shared with me. No flag means returns all public projects." ,
222- )
218+ @click .argument ("namespace" )
223219@click .option (
224220 "--name" ,
225221 help = "Filter projects with name like name" ,
226222)
227- @click .option (
228- "--namespace" ,
229- help = "Filter projects with namespace like namespace" ,
230- )
231223@click .option (
232224 "--order_params" ,
233225 help = "optional attributes for sorting the list. "
@@ -237,17 +229,14 @@ def create(ctx, project, public, from_dir):
237229 "Available attrs: namespace, name, created, updated, disk_usage, creator" ,
238230)
239231@click .pass_context
240- def list_projects (ctx , flag , name , namespace , order_params ):
232+ def list_projects (ctx , name , namespace , order_params ):
241233 """List projects on the server."""
242- filter_str = "(filter flag={})" .format (flag ) if flag is not None else "(all public)"
243-
244- click .echo ("List of projects {}:" .format (filter_str ))
245234
246235 mc = ctx .obj ["client" ]
247236 if mc is None :
248237 return
249238
250- projects_list = mc .projects_list (flag = flag , name = name , namespace = namespace , order_params = order_params )
239+ projects_list = mc .projects_list (name = name , namespace = namespace , order_params = order_params )
251240
252241 click .echo ("Fetched {} projects ." .format (len (projects_list )))
253242 for project in projects_list :
0 commit comments