#!/usr/local/Caskroom/miniconda/base/envs/my-fairseq/bin/python3

import argparse 

parser=argparse.ArgumentParser()
# add arguments here
group=parser.add_mutually_exclusive_group()
group.add_argument("--learn-only",
        action='store_true',
        default=False,
)
group.add_argument("--apply-only",
        action='store_true',
        default=False,
)
args=parser.parse_args()

if  not args.learn_only and not args.apply_only:
    print('learn and apply')
elif args.learn_only:
    print('learning only')
elif args.apply_only:
    print('apply only')


#!/usr/local/Caskroom/miniconda/base/envs/my-fairseq/bin/python3

import argparse 

parser=argparse.ArgumentParser()
# add arguments here
group=parser.add_mutually_exclusive_group()
group.add_argument("--learn-only",
        action='store_true',
        default=False,
)
group.add_argument("--apply-only",
        action='store_true',
        default=False,
)
args=parser.parse_args()

if  not args.learn_only and not args.apply_only:
    print('learn and apply')
elif args.learn_only:
    print('learning only')
elif args.apply_only:
    print('apply only')


#!/usr/local/Caskroom/miniconda/base/envs/my-fairseq/bin/python3 # add arguments here