build force shorthand flag (-f) does not work #16

Closed
opened 2025-05-04 03:49:50 +02:00 by pipetogrep · 1 comment

Per the build options, one should be able to do ./bssg.sh build -f as a shorthand flag for --force-rebuild. While --force-rebuild forks fine, -f does not seem to be recognized.

$ ./bssg.sh build -f
[SUCCESS] Default configuration loaded from config.sh
[SUCCESS] Local configuration loaded from config.sh.local
[INFO] Loading locale: en from locales/en.sh
[INFO] Expanding tilde (~) in configuration paths...
Central configuration loaded via config_loader.sh
Parsing build-specific arguments...
${RED:-$(tput setaf 1)}Error: Unknown build option: -f${NC:-$(tput sgr0)}
Usage: ./bssg.sh build [options]

Build Options:
  --src DIR               Override Source directory (from config: /home/chris/personal/blog/src)
  --pages DIR             Override Pages directory (from config: /home/chris/personal/blog/pages)
  --drafts DIR            Override Drafts directory (from config: /home/chris/personal/blog/drafts)
  --output DIR            Override Output directory (from config: /home/chris/personal/blog/output)
  --templates DIR         Override Templates directory (from config: templates)
  --themes-dir DIR        Override Themes parent directory (from config: themes)
  --theme NAME            Override Theme to use (from config: default)
  --static DIR            Override Static directory (from config: /home/chris/personal/blog/static)
  --clean-output [bool]   Clean output directory before building (default from config: false)
  --force-rebuild         Force rebuild of all files regardless of modification time
  --site-title TITLE      Override Site title
  --site-url URL          Override Site URL
  --site-description DESC Override Site description
  --author-name NAME      Override Author name
  --author-email EMAIL    Override Author email
  --posts-per-page NUM    Override Posts per page (from config: 10)
  --deploy                Force deployment after successful build (overrides config)
  --no-deploy             Prevent deployment after build (overrides config)
  --help                  Display this build-specific help message and exit

Note: These options override settings from configuration files for this build run.
Per the [build options](https://brew.bsd.cafe/stefano/BSSG/src/branch/main/README.md#build-options), one should be able to do `./bssg.sh build -f` as a shorthand flag for `--force-rebuild`. While `--force-rebuild` forks fine, `-f` does not seem to be recognized. ``` $ ./bssg.sh build -f [SUCCESS] Default configuration loaded from config.sh [SUCCESS] Local configuration loaded from config.sh.local [INFO] Loading locale: en from locales/en.sh [INFO] Expanding tilde (~) in configuration paths... Central configuration loaded via config_loader.sh Parsing build-specific arguments... ${RED:-$(tput setaf 1)}Error: Unknown build option: -f${NC:-$(tput sgr0)} Usage: ./bssg.sh build [options] Build Options: --src DIR Override Source directory (from config: /home/chris/personal/blog/src) --pages DIR Override Pages directory (from config: /home/chris/personal/blog/pages) --drafts DIR Override Drafts directory (from config: /home/chris/personal/blog/drafts) --output DIR Override Output directory (from config: /home/chris/personal/blog/output) --templates DIR Override Templates directory (from config: templates) --themes-dir DIR Override Themes parent directory (from config: themes) --theme NAME Override Theme to use (from config: default) --static DIR Override Static directory (from config: /home/chris/personal/blog/static) --clean-output [bool] Clean output directory before building (default from config: false) --force-rebuild Force rebuild of all files regardless of modification time --site-title TITLE Override Site title --site-url URL Override Site URL --site-description DESC Override Site description --author-name NAME Override Author name --author-email EMAIL Override Author email --posts-per-page NUM Override Posts per page (from config: 10) --deploy Force deployment after successful build (overrides config) --no-deploy Prevent deployment after build (overrides config) --help Display this build-specific help message and exit Note: These options override settings from configuration files for this build run. ```
Owner

Thank you! I've just fixed it and pushed to main.

Thank you! I've just fixed it and pushed to main.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: stefano/BSSG#16
No description provided.