Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
simstadtpy
Commits
ce6f0f45
Commit
ce6f0f45
authored
Sep 20, 2026
by
Eric Duminil
Browse files
Basic config for logging
parent
7b3dcbc8
Changes
1
Show whitespace changes
Inline
Side-by-side
src/simstadt/cli.py
View file @
ce6f0f45
...
@@ -51,7 +51,11 @@ def cmd_info(args: argparse.Namespace) -> None:
...
@@ -51,7 +51,11 @@ def cmd_info(args: argparse.Namespace) -> None:
def
cmd_run
(
args
:
argparse
.
Namespace
)
->
None
:
def
cmd_run
(
args
:
argparse
.
Namespace
)
->
None
:
logging
.
basicConfig
(
level
=
logging
.
DEBUG
if
args
.
verbose
else
logging
.
WARNING
)
logging
.
basicConfig
(
level
=
logging
.
DEBUG
if
args
.
verbose
else
logging
.
WARNING
,
format
=
"%(levelname)s: %(message)s"
,
datefmt
=
"[%X]"
,
)
from
.runner
import
run_workflow_with_citygml
from
.runner
import
run_workflow_with_citygml
...
@@ -94,7 +98,11 @@ def build_parser() -> argparse.ArgumentParser:
...
@@ -94,7 +98,11 @@ def build_parser() -> argparse.ArgumentParser:
description
=
"simstadt - Python library for SimStadt workflows."
,
description
=
"simstadt - Python library for SimStadt workflows."
,
)
)
parser
.
add_argument
(
"--gui"
,
action
=
"store_true"
,
help
=
"Launch the SimStadt GUI."
)
parser
.
add_argument
(
"--gui"
,
action
=
"store_true"
,
help
=
"Launch the SimStadt GUI."
)
parser
.
add_argument
(
"--csv-export"
,
action
=
"store_true"
,
help
=
"Export CSV from workflowsteps, when available."
)
parser
.
add_argument
(
"--csv-export"
,
action
=
"store_true"
,
help
=
"Export CSV from workflowsteps, when available."
,
)
parser
.
add_argument
(
parser
.
add_argument
(
"--install"
,
"--install"
,
action
=
"store_true"
,
action
=
"store_true"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment