Skip to content

Commit 908b988

Browse files
add debug argument '--debug'
1 parent 01446d9 commit 908b988

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ plot all the things in all the folders automatically but only if there have been
2121
* validation plot_info.json using jsonschema
2222

2323
### unimplemented ideas, in order of priority
24+
0. sign exe and add to releases
2425
1. create better tests
2526
2. use folder/file name for default plot title
2627
3. Hierarchical plot_info based on folder structure
2728
4. yml support
2829
5. pkl data file support
2930
6. 3D plots
31+
7. plot_info linter
3032

3133
## Install
3234
* download exe from releases (windows only)

plotme/__main__.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def run():
2525
help="save .png file of each plot")
2626
parser.add_argument('--quiet', dest='show', action="store_false",
2727
help="open each plot in a browser tab")
28+
parser.add_argument('--debug', dest='debug', action="store_true",
29+
help="enable debug logging")
2830

2931
args_dict = vars(parser.parse_args())
3032

@@ -33,7 +35,11 @@ def run():
3335
print(version_info)
3436
sys.exit(0)
3537

36-
helper.start_logging(log_level=logging.INFO)
38+
if args_dict["debug"]:
39+
log_level = logging.DEBUG
40+
else:
41+
log_level = logging.INFO
42+
helper.start_logging(log_level=log_level)
3743
logging.info(version_info)
3844

3945
try:

0 commit comments

Comments
 (0)