Skip to content

Commit 9b68c04

Browse files
authored
log level in command line argument (#66)
1 parent 223c533 commit 9b68c04

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

urdf2mjcf/convert.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,9 +887,15 @@ def main() -> None:
887887
type=str,
888888
help="A JSON file containing conversion metadata (joint params and sensors).",
889889
)
890+
parser.add_argument(
891+
"--log-level",
892+
type=int,
893+
default=logging.INFO,
894+
help="The log level to use.",
895+
)
890896
args = parser.parse_args()
891897

892-
colorlogging.configure()
898+
colorlogging.configure(level=args.log_level)
893899

894900
# Parse the raw metadata from the command line arguments.
895901
raw_metadata: dict | None = None

0 commit comments

Comments
 (0)