[docs]defsetup_arguments(cls,subparsers):parser=subparsers.add_parser("machine",help="Define information about this machine",description=""" Defines information about this machine. If no arguments are provided, an interactive console session will be used to ask questions about the machine. """,)defaults=machine.Machine.get_defaults()forname,descriptioninmachine.Machine.fields:parser.add_argument('--'+name,default=defaults[name],help=description)parser.add_argument('--yes',default=False,action='store_true',help="Accept all questions")parser.set_defaults(func=cls.run_from_args)returnparser