def cmd_snapshot(self, argv, help):
parser = argparse.ArgumentParser(<EOL>prog="<STR_LIT>" % self.progname,<EOL>description=help,<EOL>)<EOL>instances = self.get_instances(command='<STR_LIT>')<EOL>parser.add_argument("<STR_LIT>", nargs=<NUM_LIT:1>,<EOL>metavar="<STR_LIT>",<EOL>help="<STR_LIT>",<EOL>choices=sorted(instances))<EOL>args = parser.parse_args(argv)<EOL>instance = instances[args.instance[<NUM_LIT:0>]]<EOL>instance.snapshot()<EOL>
Creates a snapshot of the volumes specified in the configuration