I have it to where if the user doesn't input a num2, it will take 1 as a default number. However, I'm also trying to implement where if the user DOES input a number, it has to be above 0.
import argparse
group = parser.add_mutually_exclusive_group()
group.add_argument('-n2', '--num2', action='store_true', default=1, choices=range(0))
I've looked around and found that choices=ranges allows me to set a range for the number, however, i get an error saying
TypeError: __init__() got an unexpected keyword argument 'choices'