Python에서는 int 및 str 인수를 스크립트에 추가하는 방법을 이해합니다.
parser=argparse.ArgumentParser(description="""Mydescription""")
parser.add_argument('-l', type=str, default='info', help='String argument')
parser.add_argument('-dt', type=int, default ='', help='int argument')
부울은 무엇입니까?
기본적으로 스크립트에 특정 작업을 수행할지 여부를 알려주는 플래그를 스크립트에 전달하고 싶습니다.
action='store_true'됐나요?