Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ __pycache__/
.mcp/
tests/*_results/
tests/*.log
tests/compliance_test.env
tests/compliance_test.env
docker-compose.yml
7 changes: 6 additions & 1 deletion keepercommander/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def show_brief_help():
print(' --password, -kp PASSWORD Master password for the account')
print(' --config CONFIG Config file to use')
print(' --debug Turn on debug mode')
print(' --silent Turn off all logging statements')
print(' --batch-mode Run in batch/non-interactive mode')
print(' --proxy PROXY Proxy server')
print(' --new-login Force full login (bypass persistent login)')
Expand Down Expand Up @@ -152,6 +153,7 @@ def show_brief_help():
parser.add_argument('--version', dest='version', action='store_true', help='Display version')
parser.add_argument('--config', dest='config', action='store', help='Config file to use')
parser.add_argument('--debug', dest='debug', action='store_true', help='Turn on debug mode')
parser.add_argument('--silent', dest='silent', action='store_true', help='Turn off all logging statements')
parser.add_argument('--batch-mode', dest='batch_mode', action='store_true', help='Run commander in batch or basic UI mode.')
parser.add_argument('--launched-with-shortcut', '-lwsc', dest='launched_with_shortcut', action='store',
help='Indicates that the app was launched using a shortcut, for example using Mac App or from '
Expand Down Expand Up @@ -292,7 +294,7 @@ def main(from_package=False):
value_main_parser_args = ['--config', '--server', '--user', '--password',
'--launched-with-shortcut', '--proxy',
'--data-dir', '-ks', '-ku', '-kp', '-lwsc']
bool_main_parser_args = ['--version', '--debug', '--batch-mode',
bool_main_parser_args = ['--version', '--debug', '--silent', '--batch-mode',
'--unmask-all', '--fail-on-throttle',
'--new-login', '--config-file']
main_parser_args = value_main_parser_args + bool_main_parser_args
Expand All @@ -319,6 +321,9 @@ def main(from_package=False):
if opts.launched_with_shortcut:
os.chdir(Path.home())

if opts.silent:
logging.disable(logging.CRITICAL)

params = get_params_from_config(opts.config, opts.launched_with_shortcut, opts.data_dir)

if opts.batch_mode:
Expand Down
2 changes: 1 addition & 1 deletion keepercommander/service/commands/service_docker_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def execute(self, params, **kwargs):
self._require_file_based_config(params, 'service-docker-setup')

# Parse arguments
config_path = self._get_config_path(kwargs.get('config_path'))
config_path = self._get_config_path(kwargs.get('config_path') or params.config_filename)

# Print header
DockerSetupPrinter.print_header("Docker Setup")
Expand Down
Loading