2
私は答えが見つからない質問があります。これは私のコードブロックです:python argparse like --home-path
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-t', '--test', help='just for testing')
parser.add_argument('--home-path', help='specify the homepath')
args = parser.parser_args()
if args.test:
print('Test')
私はどのようにしてtest引数のように--home-path引数にアクセスできますか?