Update help texts in start script. Set x-bit for manage.py.

This commit is contained in:
Norman Jäckel 2014-05-29 17:52:13 +02:00
parent 39376e7029
commit c2ae991fb2
2 changed files with 11 additions and 8 deletions

0
manage.py Normal file → Executable file
View File

View File

@ -98,7 +98,8 @@ def parse_args():
# Subcommand runserver # Subcommand runserver
subcommand_runserver = subparsers.add_parser( subcommand_runserver = subparsers.add_parser(
'runserver', 'runserver',
help='Run OpenSlides using tornado webserver.') help='Run OpenSlides using tornado webserver. The database tables must '
'be created before. Use syncdb subcommand for this.')
add_general_arguments(subcommand_runserver, ('settings', 'user_data_path', 'address', 'port')) add_general_arguments(subcommand_runserver, ('settings', 'user_data_path', 'address', 'port'))
subcommand_runserver.add_argument( subcommand_runserver.add_argument(
'--start-browser', '--start-browser',
@ -116,7 +117,8 @@ def parse_args():
# Subcommand createsuperuser # Subcommand createsuperuser
subcommand_createsuperuser = subparsers.add_parser( subcommand_createsuperuser = subparsers.add_parser(
'createsuperuser', 'createsuperuser',
help="Make sure the user 'admin' exists and uses 'admin' as password.") help="Make sure the user 'admin' exists and uses 'admin' as password. "
"The database tables must be created before. Use syncdb subcommand for this.")
add_general_arguments(subcommand_createsuperuser, ('settings', 'user_data_path')) add_general_arguments(subcommand_createsuperuser, ('settings', 'user_data_path'))
subcommand_createsuperuser.set_defaults(callback=createsuperuser) subcommand_createsuperuser.set_defaults(callback=createsuperuser)
@ -175,19 +177,20 @@ def add_general_arguments(subcommand, arguments):
general_arguments['settings'] = ( general_arguments['settings'] = (
('-s', '--settings'), ('-s', '--settings'),
dict(help="Path to settings file. If this isn't provided, the " dict(help="Path to settings file. The file must be a python module. "
"%s environment variable will be used. " "If if isn't provided, the %s environment variable will be "
"If this isn't provided too, a default path according to the " "used. If the environment variable isn't provided too, a "
"OpenSlides type will be used. At the moment it is %s" % ( "default path according to the OpenSlides type will be "
"used. At the moment it is %s" % (
ENVIRONMENT_VARIABLE, ENVIRONMENT_VARIABLE,
get_default_settings_path(openslides_type)))) get_default_settings_path(openslides_type))))
general_arguments['user_data_path'] = ( general_arguments['user_data_path'] = (
('-d', '--user-data-path'), ('-d', '--user-data-path'),
dict(help='Path to the directory for user specific data files like SQLite3 ' dict(help='Path to the directory for user specific data files like SQLite3 '
'database, uploaded media and search index. This is only used, ' 'database, uploaded media and search index. It is only used, '
'when a new settings file is created. The given path is only ' 'when a new settings file is created. The given path is only '
'written into the new settings file. Default according to the ' 'written into the new settings file. Default according to the '
'OpenSlides is at the moment %s' % get_default_user_data_path(openslides_type))) 'OpenSlides type is at the moment %s' % get_default_user_data_path(openslides_type)))
general_arguments['language'] = ( general_arguments['language'] = (
('-l', '--language'), ('-l', '--language'),
dict(help='Language code. All customizable strings will be translated ' dict(help='Language code. All customizable strings will be translated '