detached f9090e3

fix: show CLI help when running without arguments

Change shouldRunCLI() to return true when no args provided,
allowing users to see available commands. Use --gui flag or
browse command to launch GUI mode.
commit
f9090e3c7601f5d812694c81e066c4ee625b8d40
author
bnema · · 2025-10-18 11:30 UTC
committer
bnema · · 2025-10-18 11:32 UTC
parent
e91cdbb
signature
GPG Unverified2B82207D370127A0 The key is unknown
2 files · +3 -2
M CHANGELOG.md +1 -0
@@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file.
2222 - Dark mode flash on startup: Set GTK dark theme preference and WebView background color before window/content creation
2323 - Cmd+Q and window close button now trigger graceful shutdown instead of killing the browser process
2424 - WebView cleanup: Properly destroy WebViews to prevent memory leaks and duplicate handler registrations when closing stacked panes
25+- CLI help: Running `dumber` without arguments now shows available commands (use `--gui` or `browse` to launch GUI)
2526
2627 ## [0.12.0] - 2025-10-16
2728
@@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file.
22 - Dark mode flash on startup: Set GTK dark theme preference and WebView background color before window/content creation22 - Dark mode flash on startup: Set GTK dark theme preference and WebView background color before window/content creation
23 - Cmd+Q and window close button now trigger graceful shutdown instead of killing the browser process23 - Cmd+Q and window close button now trigger graceful shutdown instead of killing the browser process
24 - WebView cleanup: Properly destroy WebViews to prevent memory leaks and duplicate handler registrations when closing stacked panes24 - WebView cleanup: Properly destroy WebViews to prevent memory leaks and duplicate handler registrations when closing stacked panes
25+- CLI help: Running `dumber` without arguments now shows available commands (use `--gui` or `browse` to launch GUI)
25 26
26 ## [0.12.0] - 2025-10-1627 ## [0.12.0] - 2025-10-16
27 28
M main.go +2 -2
@@ -62,9 +62,9 @@ func main() {
6262
6363 // shouldRunCLI determines if we should run in CLI mode based on arguments
6464 func shouldRunCLI() bool {
65- // No args = GUI landing page mode
65+ // No args = show CLI help with available commands
6666 if len(os.Args) <= 1 {
67- return false
67+ return true
6868 }
6969
7070 // Check for GUI-specific flags
@@ -62,9 +62,9 @@ func main() {
62 62
63 // shouldRunCLI determines if we should run in CLI mode based on arguments63 // shouldRunCLI determines if we should run in CLI mode based on arguments
64 func shouldRunCLI() bool {64 func shouldRunCLI() bool {
65- // No args = GUI landing page mode65+ // No args = show CLI help with available commands
66 if len(os.Args) <= 1 {66 if len(os.Args) <= 1 {
67- return false67+ return true
68 }68 }
69 69
70 // Check for GUI-specific flags70 // Check for GUI-specific flags

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close