Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
modelgen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
modelgen
Commits
e288089d
Commit
e288089d
authored
Oct 05, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated description of command-line arguments
parent
f6177884
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
generate.py
generate.py
+6
-7
No files found.
generate.py
View file @
e288089d
...
@@ -306,18 +306,17 @@ if __name__ == '__main__': # pragma: nocover
...
@@ -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
\
'
'
help
=
'whether to
create the
\
'
select
\
'
option in
'
'
option in
relations'
,
dest
=
'opt_create_select'
)
'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 '
help
=
'whether to create the
\
'
$attr_accessible
\
'
'
'
\
'
$attr_accessible
\
'
variable, containing all '
'variable, containing all '
'attributes except '
'attributes except primary or foreing keys'
,
'primary or foreing keys'
,
action
=
'store_true'
)
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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment