# PetscViewerViewFromOptions
View from the viewer based on the options database values 
## Synopsis
```
#include "petscviewer.h" 
PetscErrorCode PetscViewerViewFromOptions(PetscViewer A, PetscObject obj, const char name[])
```
Collective


## Input Parameters

- ***A -*** the `PetscViewer` context
- ***obj -*** Optional object that provides the prefix for the option names
- ***name -*** command line option





## See Also
 [](sec_viewers), `PetscViewer`, `PetscViewerView`, `PetscObjectViewFromOptions()`, `PetscViewerCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/classes/viewer/interface/view.c.html#PetscViewerViewFromOptions">src/sys/classes/viewer/interface/view.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/classes/viewer/interface/view.c)


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