py5book icon indicating copy to clipboard operation
py5book copied to clipboard

Could we have a brief page for the `run_sketch` tool on py5coding.org?

Open hx2A opened this issue 2 years ago • 0 comments

Could we have a brief page for the run_sketch tool on py5coding.org? I could only find a reference to the py5.run_sketch() method: https://py5coding.org/search.html?q=run_sketch

There could be a link to it at https://py5coding.org/content/py5_modes.html#imported-mode

usage: run_sketch [-h] [-c CLASSPATH] [--py5_options [PY5_OPTIONS ...]]
                  [--sketch_args [SKETCH_ARGS ...]]
                  sketch_path

Execute py5 sketch

positional arguments:
  sketch_path           path to py5 sketch

options:
  -h, --help            show this help message and exit
  -c CLASSPATH, --classpath CLASSPATH
                        extra directories to add to classpath
  --py5_options [PY5_OPTIONS ...]
                        list of parameters to pass to Processing (do not
                        prefix anything with a "-")
  --sketch_args [SKETCH_ARGS ...]
                        list of parameters to pass to py5 (do not prefix
                        anything with a "-")

Originally posted by @villares in https://github.com/py5coding/py5generator/discussions/371#discussioncomment-7303921

hx2A avatar Oct 17 '23 18:10 hx2A