guide 모드 추가 — 인자 없이 실행 시 사용법 안내 - #392
Merged
Merged
Conversation
`python main.py`를 인자 없이 실행하면 기본 백테스트가 조용히 돌던 동작을 사용 가이드 출력으로 변경한다. `--mode guide`도 같은 가이드를 보여주며, --strategy/--symbol 값을 예시 명령에 반영해 바로 복사해 쓸 수 있게 했다. - 시스템(로거·DB) 초기화 없이 stdout으로만 출력 후 종료 - 14개 모드 분석/모의/실전/유지보수로 분류한 치트시트 제공 - tests/test_cli_guide.py 계약 충족(인자 없음·guide 모드 2케이스)
easygap
added a commit
that referenced
this pull request
Jul 6, 2026
guide 모드 추가 — 인자 없이 실행 시 사용법 안내
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
배경
python main.py를 인자 없이 실행하면--mode기본값이backtest라 기본 백테스트가 조용히 실행됐다. 처음 실행하거나 사용법을 확인하려는 사용자에게 놀랍고(예상 밖) 안전하지 않은 기본 동작이다.변경
--mode guide→ 사용 가이드만 출력 후 종료(매매·백테스트 미실행).--strategy/--symbol값을 예시 명령에 반영해 바로 복사해 쓸 수 있게 함.영향
--mode backtest를 명시하면 기존처럼 백테스트가 동작한다(하위 호환).테스트
tests/test_cli_guide.py: 인자 없음·guide 모드 2케이스 계약 검증.