# PetscOptionsInsertArgs
Inserts options into the database from a array of strings 
## Synopsis
```
#include "petscsys.h"   
PetscErrorCode PetscOptionsInsertArgs(PetscOptions options, int argc, char *args[])
```
Logically Collective


## Input Parameters

- ***options -*** options object
- ***argc -*** the array length
- ***args -*** the string array





## See Also
 `PetscOptions`, `PetscOptionsInsertString()`, `PetscOptionsInsertFile()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/options.c.html#PetscOptionsInsertArgs">src/sys/objects/options.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/options.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
