oss2024hnu / coursegraph-py

BSD 2-Clause "Simplified" License
5 stars 68 forks source link

-v 2 옵션의 과도한 출력을 문서화 하는 기능의 필요성 #437

Closed HeoSeungBeen closed 3 months ago

HeoSeungBeen commented 3 months ago

가장 최근 버전인 c54222c41119295820eba9194eb73ee2677e0ce6 기준으로

python3 coursegraph data/input.yaml -v 2

를 사용했을 경우

DEBUG:matplotlib.font_manager:findfont: score(FontEntry(fname='/System/Library/Fonts/Supplemental/NotoSansDuployan-Regular.ttf', name='Noto Sans Duployan', style='normal', variant='normal', weight=400, stretch='normal', size='scalable')) = 10.335
DEBUG:matplotlib.font_manager:findfont: score(FontEntry(fname='/System/Library/Fonts/ヒラギノ角ゴシック W0.ttc', name='Hiragino Sans', style='normal', variant='normal', weight=100, stretch='normal', size='scalable')) = 10.62
DEBUG:matplotlib.font_manager:findfont: score(FontEntry(fname='/System/Library/Fonts/Supplemental/NotoSansHanunoo-Regular.ttf', name='Noto Sans Hanunoo', style='normal', variant='normal', weight=400, stretch='normal', size='scalable')) = 10.335
DEBUG:matplotlib.font_manager:findfont: Matching Apple SD Gothic Neo:style=normal:variant=normal:weight=bold:stretch=normal:size=18.0 to Apple SD Gothic Neo ('/System/Library/Fonts/AppleSDGothicNeo.ttc') with score of 0.335000.
0: [(1, 0.3)]
1: [(1, 0.6)]
2: [(1, 0.8999999999999999)]
3: [(2, 0.3)]
4: [(2, 0.6)]
5: [(3, 0.3)]
6: [(3, 0.6)]
7: [(4, 0.3)]
8: [(4, 0.6)]

이런식으로 DEBUG 관련 내용이 CLI 에 거침없이 출력되는 것을 볼 수 있습니다.

해당 출력 내용을 표준 출력이 아닌 .txt 와 같은 파일로 출력해서 더 깔끔한 CLI 를 사용할 수 있게 하는 기능이 필요합니다.

kyagrd commented 3 months ago

유닉스에도 그렇고 명령줄에는 리다이렉션이라는 기능이 있으므로 이건 특별한 이유가 있지 않은 이상 구현할 이유는 딱히 없습니다. 반려합니다.

https://wikidocs.net/29734