Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-31331: Add --log-file and --no-log-tty to bps command #41

Merged
merged 2 commits into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
python/lsst/ctrl/bps/version.py
_build.*
.sconsign.dblite
bin/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
6 changes: 4 additions & 2 deletions python/lsst/ctrl/bps/cli/bps.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import click

from lsst.daf.butler.cli.butler import LoaderCLI
from lsst.daf.butler.cli.opt import log_level_option, long_log_option
from lsst.daf.butler.cli.opt import log_level_option, long_log_option, log_file_option, log_tty_option
from lsst.daf.butler.cli.utils import unwrap


Expand All @@ -46,7 +46,9 @@ class BpsCli(LoaderCLI):
epilog=epilog)
@log_level_option(default=["WARNING"])
@long_log_option()
def cli(log_level, long_log):
@log_file_option()
@log_tty_option()
def cli(log_level, long_log, log_file, log_tty):
pass


Expand Down