examples/default-values/src/bashly.yml
name: convert
help: Sample application using default arguments and flags
version: 0.1.0
args:
- name: source
help: Files to convert
# By setting a default value for the argument, this value will be used
# when `source` is not provided.
default: "*.jpg"
flags:
- long: --format
short: -f
arg: format
help: Format to convert to
# Default values can also be applied to flags.
default: png
examples:
- convert *.bmp
- convert --format jpg
- convert *.bmp --format jpg