사용자 도구

사이트 도구


argparse

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
argparse [2018/11/19 01:17] – 만듦 rex8312argparse [2024/03/23 02:38] (현재) – 바깥 편집 127.0.0.1
줄 25: 줄 25:
 script --nice <bool> script --nice <bool>
 </code> </code>
 +
 +bool 타입
 +
 +command --feature  / command --no-feature 방식
 +
 +<code python>
 +parser.add_argument('--feature', dest='feature', action='store_true')
 +parser.add_argument('--no-feature', dest='feature', action='store_false')
 +parser.set_defaults(feature=True)
 +</code>
 +
 +
  
   * https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse   * https://stackoverflow.com/questions/15008758/parsing-boolean-values-with-argparse
 +
 +
 +===== GUI =====
 +
 +  * https://github.com/chriskiehl/Gooey
 +
 +
 +===== 대체모듈 ======
 +
 +  * https://pypi.org/project/python-decouple/
 +
 +{{tag>config args argparse}}
argparse.1542590232.txt.gz · 마지막으로 수정됨: (바깥 편집)