Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhellermann committed Jul 6, 2024
1 parent c8bb89f commit a88e820
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@

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

```rust
use bevy::prelude::*;
use bevy::log::LogPlugin;

fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(bevy_mod_debugdump::CommandLineArgs)
.run()
}
```

```
cargo run -- --dump-update-schedule
Usage: [--dump-update-schedule file] [--dump-render file] [--no-exit]
```


## Schedule graph

```rust
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ pub fn print_render_graph(app: &mut App) {
///
/// ## Exit the app
///
/// Use `--exit` to exit the app. This may be useful if one wants to create
/// these graphs in script.
/// By default the app will exit after performing the dump. If you want to keep the app running, use `--no-exit`.
///
/// # Usage
///
Expand Down

0 comments on commit a88e820

Please sign in to comment.