in ees_sharepoint/cli.py [0:0]
def _parser():
"""Get a configured parser for the module.
This method will initialize argument parser with a list
of avaliable commands and their options."""
parser = ArgumentParser(prog="ees_sharepoint")
parser.add_argument(
"-c",
'--config-file',
type=str,
metavar="CONFIGURATION_FILE_PATH",
help="path to the configuration file"
)
subparsers = parser.add_subparsers(dest="cmd")
subparsers.required = True
bootstrap = subparsers.add_parser(CMD_BOOTSTRAP)
bootstrap.add_argument(
'-n',
'--name',
required=True,
type=str,
metavar="CONTENT_SOURCE_NAME",
help="Name of the content source to be created"
)
bootstrap.add_argument(
'-u',
'--user',
required=False,
type=str,
metavar="ENTERPRISE_SEARCH_ADMIN_USER_NAME",
help="Username of the workplace search admin account"
)
subparsers.add_parser(CMD_FULL_SYNC)
subparsers.add_parser(CMD_INCREMENTAL_SYNC)
subparsers.add_parser(CMD_DELETION_SYNC)
subparsers.add_parser(CMD_PERMISSION_SYNC)
return parser