parameters: ()
return_statement: return parser.parse_args()
docstring: Parse and return command line arguments
docstring_summary: Parse and return command line arguments
docstring_tokens: Parse and return command line arguments
function: def parse_args() -> argparse.Namespace:
      """Parse and return command line arguments"""
      parser = argparse.ArgumentParser(add_help=False)
      args = parser.add_argument_group('Options')
      # fmt: off
      args.add_argument('-h', '--help', action='help',
                        help='Show this help message and exit.')
      args.add_argument('-m', '--model', type=str, required=True,
                        help='Required. Path to an .xml or .onnx file with a trained model.')
      args.add_argument('-i', '--input', type=str, required=True, nargs='+',
                        help='Required. Path to an image file(s).')
      args.add_argument('-d', '--device', type=str, default='CPU',
                        help='Optional. Specify the target device to infer on; CPU, GPU, MYRIAD, HDDL or HETERO: '
                        'is acceptable. The sample will look for a suitable plugin for device specified. '
                        'Default value is CPU.')
      # fmt: on
      return parser.parse_args()
function_tokens: def parse_args ( ) -> argparse . Namespace : parser = argparse . ArgumentParser ( add_help = False ) args = parser . add_argument_group ( 'Options' ) # fmt: off args . add_argument ( '-h' , '--help' , action = 'help' , help = 'Show this help message and exit.' ) args . add_argument ( '-m' , '--model' , type = str , required = True , help = 'Required. Path to an .xml or .onnx file with a trained model.' ) args . add_argument ( '-i' , '--input' , type = str , required = True , nargs = '+' , help = 'Required. Path to an image file(s).' ) args . add_argument ( '-d' , '--device' , type = str , default = 'CPU' , help = 'Optional. Specify the target device to infer on; CPU, GPU, MYRIAD, HDDL or HETERO: ' 'is acceptable. The sample will look for a suitable plugin for device specified. ' 'Default value is CPU.' ) # fmt: on return parser . parse_args ( )