# VecStashViewFromOptions
Processes command line options to determine if/how a `VecStash` object is to be viewed. 
## Synopsis
```
#include "petscvec.h"   
PetscErrorCode VecStashViewFromOptions(Vec obj, PetscObject bobj, const char optionname[])
```
Collective


## Input Parameters

- ***obj   -*** the `VecStash` object
- ***bobj -*** optional other object that provides the prefix
- ***optionname -*** option to activate viewing





## Developer Note
This cannot use `PetscObjectViewFromOptions()` because it takes a `Vec` as an argument but does not use VecView


## See Also
 [](chapter_vectors), `Vec`, `VecStashSetInitialSize()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/interface/vector.c.html#VecStashViewFromOptions">src/vec/vec/interface/vector.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/interface/vector.c)


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