<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cmd_settings(args):
 """Print generator settings. Parameters args : `argparse.Namespace` Command arguments. """

    if args.type == SQLITE:
        storage = SqliteStorage
    else:
        storage = JsonStorage
    storage = storage.load(args.state)
    data = storage.settings
    try:
        del data['markov']['nodes']
    except KeyError:
        pass
    pprint(data)