Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cppwg/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pathlib import Path

from cppwg import CppWrapperGenerator
from cppwg.utils.constants import CPPWG_DEFAULT_LOGFILE
from cppwg.version import __version__


Expand Down Expand Up @@ -132,7 +133,7 @@ def parse_args() -> argparse.Namespace:
type=str,
nargs="?",
default=None,
const="cppwg.log",
const=CPPWG_DEFAULT_LOGFILE,
help="Output log messages to a file.",
)

Expand Down
3 changes: 3 additions & 0 deletions cppwg/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
CPPWG_EXT = "cppwg"
CPPWG_HEADER_COLLECTION_FILENAME = f"wrapper_header_collection.{CPPWG_EXT}.hpp"

# Default log file name used when --logfile is passed without a value.
CPPWG_DEFAULT_LOGFILE = f"{CPPWG_EXT}.log"

CPPWG_TRUE_STRINGS = ["ON", "YES", "Y", "TRUE", "T", "1"]
CPPWG_FALSE_STRINGS = ["OFF", "NO", "N", "FALSE", "F", "0", ""]

Expand Down
Loading