You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is either a lack of documentation (leading to a lack of understanding) or a bug. I have been trying to use the --wrap option for argbash-init but it doesn't seem to have any effect.
$ argbash-init --opt environment --opt name -m full foo.m4
$ argbash-init --pos foobar --wrap foo.m4 -m full bar.m4
$ cat bar.m4
#!/bin/bash# m4_ignore(echo"This is just a script template, not the script (yet) - pass it to 'argbash' to fix this.">&2exit 11 #)Created by argbash-init v2.10.0# ARG_POSITIONAL_SINGLE([foobar])# ARGBASH_SET_DELIM([ =])# ARG_OPTION_STACKING([getopt])# ARG_RESTRICT_VALUES([no-local-options])# ARG_DEFAULTS_POS# ARG_HELP([<The general help message of my script>])# ARGBASH_GO# [ <-- needed because of Argbash# vvv PLACE YOUR CODE HERE vvv# For example:printf"Value of '%s': %s\\n"'foobar'"$_arg_foobar"# ^^^ TERMINATE YOUR CODE BEFORE THE BOTTOM ARGBASH MARKER ^^^# ] <-- needed because of Argbash
Expected outcome is the bar.m4 file would include a # ARGBASH_WRAP(...) line but it doesn't. Am I misunderstanding how to use --wrap?
EDIT: I've tried using both --wrap foo.m4 and --wrap foo as the underlying ARGBASH_WRAP says to use the filename stem.
The text was updated successfully, but these errors were encountered:
This is either a lack of documentation (leading to a lack of understanding) or a bug. I have been trying to use the
--wrap
option forargbash-init
but it doesn't seem to have any effect.Expected outcome is the
bar.m4
file would include a# ARGBASH_WRAP(...)
line but it doesn't. Am I misunderstanding how to use--wrap
?EDIT: I've tried using both
--wrap foo.m4
and--wrap foo
as the underlyingARGBASH_WRAP
says to use the filename stem.The text was updated successfully, but these errors were encountered: