shell dot on steroids https://pagure.io/shellfu

wrap_mkusage_allw 465B

1234567891011121314151617181920
  1. #!/bin/bash
  2. . "$(sfpath)"
  3. shellfu import pretty
  4. usage() {
  5. mkusage -w "$1" \
  6. "[-d] load [-f file]" \
  7. "[-d] save [-f file]" \
  8. -o "-d debug" \
  9. "-f file some file" \
  10. -c "load - load a file or something" \
  11. "save - save a file or something" \
  12. -- "other items:" \
  13. -i "item1" "item2" "item3" \
  14. -- "and that's all folks!"
  15. }
  16. usage "missing an important argument"