@@ -13,26 +13,11 @@ class Generate < Base
1313 option '-u --upgrade' , 'Upgrade all added library functions'
1414 option '-w --watch' , 'Watch the source directory for changes and regenerate on change'
1515 option '-r --wrap FUNCTION' , 'Wrap the entire script in a function so it can also be sourced'
16- option '-e --env ENV' , 'Force the generation environment (see BASHLY_ENV)'
17-
18- environment 'BASHLY_SOURCE_DIR' , 'The path containing the bashly configuration and source ' \
19- 'files [default: src]'
20-
21- environment 'BASHLY_TARGET_DIR' , 'The path to use for creating the bash script [default: .]'
22- environment 'BASHLY_LIB_DIR' ,
23- 'The path to use for upgrading library files, relative to the source dir [default: lib]'
24-
25- environment 'BASHLY_STRICT' , 'When not empty, enable bash strict mode (set -euo pipefail)'
26- environment 'BASHLY_TAB_INDENT' ,
27- 'When not empty, the generated script will use tab indentation instead of spaces ' \
28- '(every 2 leading spaces will be converted to a tab character)'
29-
30- environment 'BASHLY_ENV' , <<~HELP
31- Set to 'production' or 'development':
16+ option '-e --env ENV' , <<~HELP
17+ Force the generation environment:
18+
3219 - production generate a smaller script, without file markers
3320 - development generate with file markers
34-
35- Can be overridden with --env [default: development]
3621 HELP
3722
3823 example 'bashly generate --force'
0 commit comments