human
Python program to argparse check if default is used.
assistant
Here is a Python program to check if default is used

import argparse

def check_if_default_used(args):
    """
    Checks if default is used.

    Parameters:
    ----------
    args: argparse.Namespace

    """
    if args.default is not None:
        return True
    else:
        return False

# Enter the arguments
parser = argparse.ArgumentParser()
parser.add_argument('--default', type=int, default=1)
args = parser.parse_args()

# Calling the function
print((check_if_default_used(args)))

#Example Output
# True

#Remember to inspect code for bugs.