|
@@ -306,18 +306,17 @@ if __name__ == '__main__': # pragma: nocover
|
|
|
help='MySQL password')
|
|
help='MySQL password')
|
|
|
parser.add_argument('--has-one', nargs=2, dest='opt_has_one',
|
|
parser.add_argument('--has-one', nargs=2, dest='opt_has_one',
|
|
|
help='one-to-one relationships of the form '
|
|
help='one-to-one relationships of the form '
|
|
|
- '\'payment-receipt\', where one payment has one '
|
|
|
|
|
|
|
+ '\'payment receipt\', where one payment has one '
|
|
|
'receipt', action='append', default=[])
|
|
'receipt', action='append', default=[])
|
|
|
parser.add_argument('--namespace', default='', dest='opt_namespace',
|
|
parser.add_argument('--namespace', default='', dest='opt_namespace',
|
|
|
help='PHP namespace to create models classes in')
|
|
help='PHP namespace to create models classes in')
|
|
|
parser.add_argument('--create-select', action='store_true',
|
|
parser.add_argument('--create-select', action='store_true',
|
|
|
- help='whether to skip creation of the \'select\' '
|
|
|
|
|
- 'option in relations', dest='opt_create_select')
|
|
|
|
|
|
|
+ help='whether to create the \'select\' option in '
|
|
|
|
|
+ 'relations', dest='opt_create_select')
|
|
|
parser.add_argument('--create-accessible', dest='opt_create_accessible',
|
|
parser.add_argument('--create-accessible', dest='opt_create_accessible',
|
|
|
- help='whether to skip creation of the '
|
|
|
|
|
- '\'$attr_accessible\' variable, containing all '
|
|
|
|
|
- 'attributes except primary or foreing keys',
|
|
|
|
|
- action='store_true')
|
|
|
|
|
|
|
+ help='whether to create the \'$attr_accessible\' '
|
|
|
|
|
+ 'variable, containing all ' 'attributes except '
|
|
|
|
|
+ 'primary or foreing keys', action='store_true')
|
|
|
parser.add_argument('-a', '--create-all', action='store_true',
|
|
parser.add_argument('-a', '--create-all', action='store_true',
|
|
|
help='create all available options and variables')
|
|
help='create all available options and variables')
|
|
|
parser.add_argument('-d', '--dir', help='directory to save model files in')
|
|
parser.add_argument('-d', '--dir', help='directory to save model files in')
|