-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial page with command line flags (close #149)
- Loading branch information
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
Command-line flags reference | ||
============================ | ||
|
||
This is a list of all the flags you can specify to the ``sbot`` command-line runner. | ||
|
||
.. data:: --outputfile <FILENAME> / -o <FILENAME> | ||
|
||
Run in headless mode, outputting the result directly to a file. | ||
|
||
Supported extensions are ``.png``, ``.svg``, ``.pdf`` and ``.ps``. | ||
|
||
.. data:: --socketserver / -s | ||
|
||
Run a socket server for external variable control. | ||
|
||
.. data:: --serverport <PORT> / -s <PORT> | ||
|
||
Set the socket server port to listen for connections (default is 7777). | ||
|
||
.. data:: --vars <VARS> / -v <VARS> | ||
|
||
Initial variables, in JSON format. | ||
|
||
Use single quotes **outside**, and double quotes **inside**, e.g.: ``--vars='{"variable1": 1}'`` | ||
|
||
.. data:: --namespace <NAMESPACE> / -ns <NAMESPACE> | ||
|
||
Initial namespace, in JSON format. | ||
|
||
Use single quotes **outside**, and double quotes **inside**, e.g.: ``--namespace='{"variable1": 1}'`` | ||
|
||
.. data:: --args <ARGS> / -a <ARGS> | ||
|
||
Pass arguments to bot. [TODO: explain better] | ||
|
||
.. data:: --l / -l | ||
|
||
Open a shell for IDE interaction. [TODO: explain better what this does] | ||
|
||
.. data:: --repeat <TIMES> / -r <TIMES> | ||
|
||
Set number of iterations to run the script, producing multiple images. | ||
|
||
.. data:: --grammar <LANG> / -g <LANG> | ||
|
||
Select the language to use: ``nodebox`` (default) or ``drawbot``. | ||
|
||
Note that Drawbot support is experimental. | ||
|
||
|
||
.. data:: --window / -w | ||
|
||
Run the script in a GTK window (default). | ||
|
||
.. data:: --fullscreen / -f | ||
|
||
Run the script in fullscreen mode. | ||
|
||
.. data:: --title <TITLE> / -t <TITLE> | ||
|
||
Set the window title. | ||
|
||
.. data:: --close / -c | ||
|
||
Close the window after running the script. Use with ``-r`` for benchmarking. | ||
|
||
.. data:: --disable-vars / -dv | ||
|
||
Disable the variables pane when in windowed mode. | ||
|
||
.. data:: --disable-background-thread / -dt | ||
|
||
Don't run code in a background thread. | ||
|
||
.. data:: --verbose / -V | ||
|
||
Show internal error information in tracebacks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ Contents: | |
examples | ||
troubleshooting | ||
developing | ||
cli_flags | ||
|
||
|
||
.. We won't be needing these for now | ||
|
6d68097
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. maybe useful to explain it can be used for an IDE as well.
6d68097
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good one, fixed in 17765fa