save_full_screenshot/save_full_screenshot.rs
1use flameshot::FullArgs;
2//use flameshot::GuiArgs;
3//use flameshot::ScreenArgs;
4
5pub fn main() {
6 /// We select one of the 3 main param types and use the builder method to
7 /// customize the cli arguments, it includes all flameshot cli args.
8 let params = FullArgs::builder().path("screenshot.png").build();
9 /// This operation can error, it can error because of OS problems
10 /// or Flameshot problems.
11 let output = flameshot::execute(params).unwrap();
12}