python
import argparse
parser = argparse.ArgumentParser(description='A simple CLI framework example')
parser.add_argument('command', help='The command to execute')
parser.add_argument('--option', help='The optional parameter')
args = parser.parse_args()
def execute_command(command, option):
if command == 'hello':
print('Hello, World!')
elif command == 'add':
result = 0
if option:
result = int(option)
print(f'The result is {result + 1}')
execute_command(args.command, args.option)
python cli_framework.py hello
python cli_framework.py add --option 5