"Fossies" - the Fresh Open Source Software Archive

Member "argbash-2.10.0/resources/examples/minimal-raw.m4" (22 Sep 2020, 714 Bytes) of package /linux/privat/argbash-2.10.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "minimal-raw.m4": 2.9.0_vs_2.10.0.

    1 #!/bin/bash
    2 
    3 # m4_ignore(
    4 echo "This is just a script template, not the script (yet) - pass it to 'argbash' to fix this." >&2
    5 exit 11  #)Created by argbash-init v2.10.0
    6 # ARG_OPTIONAL_SINGLE([option])
    7 # ARG_OPTIONAL_BOOLEAN([print])
    8 # ARG_POSITIONAL_SINGLE([positional-arg])
    9 # ARG_DEFAULTS_POS
   10 # ARG_HELP([<The general help message of my script>])
   11 # ARGBASH_GO
   12 
   13 # [ <-- needed because of Argbash
   14 
   15 # vvv  PLACE YOUR CODE HERE  vvv
   16 # For example:
   17 printf 'Value of --%s: %s\n' 'option' "$_arg_option"
   18 printf "'%s' is %s\\n" 'print' "$_arg_print"
   19 printf "Value of '%s': %s\\n" 'positional-arg' "$_arg_positional_arg"
   20 
   21 # ^^^  TERMINATE YOUR CODE BEFORE THE BOTTOM ARGBASH MARKER  ^^^
   22 
   23 # ] <-- needed because of Argbash