Skip to content

Commit

Permalink
Add override and verbose options to makeButlerRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed May 8, 2019
1 parent 6cf3df2 commit 00f14fe
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin.src/makeButlerRepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import argparse
import logging

from lsst.daf.butler import Butler, Config

Expand All @@ -36,6 +37,16 @@
parser.add_argument("--standalone", action="store_true", default=False,
help=("Include all defaults in the config file in the repo, insulating "
"the repo from changes in package defaults."))
parser.add_argument("--verbose", "-v", action="store_true",
help="Turn on debug reporting.")
parser.add_argument("--override", "-o", action="store_true",
help="Turn on debug reporting.")
args = parser.parse_args()

if args.verbose:
logging.basicConfig(level=logging.DEBUG)

forceConfigRoot = not args.override

config = Config(args.config) if args.config is not None else None
Butler.makeRepo(args.root, config=config, standalone=args.standalone)
Butler.makeRepo(args.root, config=config, standalone=args.standalone, forceConfigRoot=forceConfigRoot)

0 comments on commit 00f14fe

Please sign in to comment.