Handle CLI arguments as structured argument-parameter pairs

This commit is contained in:
Juno Takano 2025-12-14 15:08:55 -03:00
commit 2040854e82
7 changed files with 83 additions and 15 deletions

View file

@ -6,7 +6,7 @@ _default:
# Build on changes
[group('dev')]
serve-watch:
bacon --job run-long -- localhost:3003
bacon --job run-long -- -- --host localhost --port 3003
alias sw := serve-watch
alias dev := serve-watch
@ -37,7 +37,7 @@ push: check
# Start server
[group('run')]
serve:
cargo run localhost:3003
cargo run -- --hostname localhost --port 3003
alias s := serve