Skip to content

Commit a88e820

Browse files
fix docs
1 parent c8bb89f commit a88e820

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44

55
Live playground: [jakobhellermann.github.io/bevy_mod_debugdump](https://jakobhellermann.github.io/bevy_mod_debugdump)
66

7+
```rust
8+
use bevy::prelude::*;
9+
use bevy::log::LogPlugin;
10+
11+
fn main() {
12+
App::new()
13+
.add_plugins(DefaultPlugins)
14+
.add_plugins(bevy_mod_debugdump::CommandLineArgs)
15+
.run()
16+
}
17+
```
18+
19+
```
20+
cargo run -- --dump-update-schedule
21+
22+
Usage: [--dump-update-schedule file] [--dump-render file] [--no-exit]
23+
```
24+
25+
726
## Schedule graph
827

928
```rust

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ pub fn print_render_graph(app: &mut App) {
100100
///
101101
/// ## Exit the app
102102
///
103-
/// Use `--exit` to exit the app. This may be useful if one wants to create
104-
/// these graphs in script.
103+
/// By default the app will exit after performing the dump. If you want to keep the app running, use `--no-exit`.
105104
///
106105
/// # Usage
107106
///

0 commit comments

Comments
 (0)