Skip to content

Commit 3fc2f3b

Browse files
Copilotmmahmoudian
andauthored
Add exit codes documentation to CLI instructions (#189)
* Initial plan * Add exit codes documentation to command-line options page Co-authored-by: mmahmoudian <390889+mmahmoudian@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mmahmoudian <390889+mmahmoudian@users.noreply.github.com>
1 parent fc743cb commit 3fc2f3b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

content/docs/advanced/commandline-options.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,3 +245,16 @@ Options:
245245
--check Check the configuration for errors
246246
-h, --help Displays this help
247247
```
248+
249+
250+
## Exit codes
251+
252+
Flameshot returns different exit codes to indicate the result of the operation:
253+
254+
- **0**: Normal exit - The command completed successfully
255+
- **2**: Screenshot aborted - The user cancelled or aborted the screenshot operation
256+
- **3**: DBus connection lost - Flameshot was unable to connect via DBus
257+
- **130**: SIGINT received - The process was interrupted (Ctrl+C)
258+
- **143**: SIGTERM received - The process was terminated by the system
259+
260+
These exit codes can be useful when using Flameshot in scripts or automation workflows to determine the outcome of the screenshot operation.

0 commit comments

Comments
 (0)