-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d4f6a5
commit f06c5c6
Showing
7 changed files
with
81 additions
and
11 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,70 @@ | ||
************ | ||
Command line | ||
************ | ||
|
||
QuPath is *mostly* designed to be an interactive application, and this remains the main priority. | ||
|
||
However, v0.2.0 introduces a new command line, which makes it possible to: | ||
|
||
* Launch QuPath with specific options (e.g. a logging level) | ||
* Run scripts headlessly | ||
* Convert images to OME-TIFF | ||
|
||
.. tip:: | ||
|
||
The order in which command line arguments are passed can be important. | ||
See `this forum post <https://forum.image.sc/t/unexpected-command-line-usage-in-0-2-0-m10-and-greater/38548/2>`_. | ||
|
||
Viewing command line options | ||
**************************** | ||
|
||
The general way to view the command line options is with: | ||
|
||
.. code-block:: bash | ||
QuPath-0.2.0 --help | ||
However, there are some platform-specific details on Windows and Mac. | ||
|
||
Windows | ||
======= | ||
|
||
On Windows, there are two executable files for QuPath. | ||
It is necessary to use *"QuPath (console).exe"* here to be able to view the output, e.g. | ||
|
||
.. code-block:: bash | ||
"QuPath-0.2.0 (console).exe" --help | ||
.. figure:: images/command_line_win.png | ||
:align: center | ||
:width: 80% | ||
:class: shadow-image | ||
|
||
Mac | ||
=== | ||
|
||
On macOS, the executable is buried inside the ``.app`` file and therefore you need something like: | ||
|
||
.. code-block:: bash | ||
./QuPath-0.2.0.app/Contents/MacOS/QuPath-0.2.0 --help | ||
.. figure:: images/command_line_mac.png | ||
:align: center | ||
:width: 95% | ||
|
||
|
||
Subcommands | ||
*********** | ||
|
||
Some of the command line functionality is available via *subcommands*, such as ``script``. | ||
Help is available for these separately. | ||
|
||
.. code-block:: bash | ||
QuPath-0.2.0 script --help | ||
.. figure:: images/command_line_mac_script.png | ||
:align: center | ||
:width: 95% |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ Advanced | |
exporting_images | ||
exporting_annotations | ||
stardist | ||
command_line |
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
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