From 6e06187bfb32a4d243151eea40960b75c03723dc Mon Sep 17 00:00:00 2001 From: Matt Stein Date: Sun, 20 Oct 2024 10:40:22 -0700 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c72e045..5c4abeb 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ fields: Janitor will automatically fill in the current model. -- The `--model` argument will have the UUID or ID of the current model. You can use `janitor()->model($cli->arg('model))` to get the object. +- The `--model` argument will have the UUID or ID of the current model. You can use `janitor()->model($cli->arg('model'))` to get the object. - But if for example you press the panel button on a page you will have `--page` argument set to the UUID or ID of that page. Use `$cli->kirby()->page($cli->arg('page'))` to get the object. - If you call it on a file view then `--file` arg will be set. Use `$cli->kirby()->file($cli->arg('file'))` to get the object. - On a panel user view... `--user`. Use `$cli->kirby()->user($cli->arg('user'))` to get the object.