def Args(parser): """Default argument specification.""" labels_util.AddCreateLabelsFlags(parser) type_ = arg_parsers.RegexpValidator(r'[a-z][a-z0-9-]{5,29}', ID_DESCRIPTION) parser.add_argument( 'id', metavar='PROJECT_ID', type=type_, nargs='?', help='ID for the project you want to create.\n\n{0}'.format( ID_DESCRIPTION)) parser.add_argument('--name', help='Name for the project you want to create. ' 'If not specified, will use project id as name.') parser.add_argument( '--enable-cloud-apis', action='store_true', default=True, help='Enable cloudapis.googleapis.com during creation.') parser.add_argument( '--set-as-default', action='store_true', default=False, help='Set newly created project as [core.project] property.') flags.OrganizationIdFlag('to use as a parent').AddToParser(parser) flags.FolderIdFlag('to use as a parent').AddToParser(parser)
def Args(parser): flags.FolderIdFlag('to list folders under').AddToParser(parser) flags.OrganizationIdFlag('to list folders under').AddToParser(parser) parser.display_info.AddFormat(""" table( displayName:label=DISPLAY_NAME, parent:label=PARENT_NAME, name.segment():label=ID:align=right:sort=1 ) """)
def Args(parser): flags.FolderIdFlag('to list folders under').AddToParser(parser) flags.OrganizationIdFlag('to list folders under').AddToParser(parser)