argparse

차이

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

차이 보기로 링크

다음 판
이전 판
argparse [2018/11/19 01:17] – 만듦 rex8312argparse [2025/11/03 00:24] (현재) – [대체모듈] rex8312
줄 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/
 +
 +===== rich =====
 +
 +  * https://pypi.org/project/rich-argparse/
 +
 +{{tag>config args argparse}}
 +
 +
argparse.1542590232.txt.gz · 마지막으로 수정됨: (바깥 편집)