From edfd65f973b01d08a2ee7fd501ba1fff60ab0d6a Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Fri, 9 Sep 2022 00:38:29 -0700 Subject: [PATCH] :construction: Setting up for -h/--help flag --- scripts/bgit | 4 ++++ scripts/bgit_help | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 scripts/bgit_help diff --git a/scripts/bgit b/scripts/bgit index 0aa37ec3..4a7cbefe 100755 --- a/scripts/bgit +++ b/scripts/bgit @@ -171,6 +171,10 @@ function bgit() { elif [[ $numrepos -ge 1 && $numargs -eq 1 && $1 == "-r" ]] ; then source $HOME/.config/bgit/bgit_revert b_revert "$@" + + elif [[ $numargs -eq 1 && $1 == "-h" || $1 == "--help" ]] ; then + source $HOME/.config/bgit/bgit_help + b_help "$@" fi } diff --git a/scripts/bgit_help b/scripts/bgit_help new file mode 100644 index 00000000..6b439602 --- /dev/null +++ b/scripts/bgit_help @@ -0,0 +1,5 @@ +#!/bin/bash + +function b_help() { + echo "${txtgreen}help message will go here${txtwhite}" +}