Skip to content
This repository was archived by the owner on Oct 9, 2021. It is now read-only.

Commit cfc93ff

Browse files
committed
Correctly parse include_only_with_project_file when set to false #161
1 parent f958236 commit cfc93ff

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

tests/samples/configs/has_everything.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ exclude =
99
^/etc/
1010
include =
1111
.*
12+
include_only_with_project_file = false
1213
offline = false
1314
proxy = https://user:pass@localhost:8080
1415
no_ssl_verify = false

wakatime/arguments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def parse_arguments():
275275
except TypeError: # pragma: nocover
276276
pass
277277
if not args.include_only_with_project_file and configs.has_option('settings', 'include_only_with_project_file'):
278-
args.include_only_with_project_file = configs.get('settings', 'include_only_with_project_file')
278+
args.include_only_with_project_file = configs.get('settings', 'include_only_with_project_file') == 'true'
279279
if not args.include:
280280
args.include = []
281281
if configs.has_option('settings', 'include'):

0 commit comments

Comments
 (0)