diff options
Diffstat (limited to 'dot-backup.sh')
| -rwxr-xr-x | dot-backup.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dot-backup.sh b/dot-backup.sh index 701153f..128a733 100755 --- a/dot-backup.sh +++ b/dot-backup.sh @@ -52,6 +52,7 @@ VERBOSE=false RESTORE=false QUIET=false PUSH=false +SUGGEST=false usage() { echo "Usage: $0 [options]" @@ -60,6 +61,7 @@ usage() { echo " -r, --restore Restore dotfiles from backup to their original locations" echo " -q, --quiet Suppress stdout; write output to log instead" echo " -p, --push Push to remote after commit (requires GIT_REMOTE in config)" + echo " -s, --suggest List untracked config dirs/files new since last backup, then exit" echo " -h, --help Show this help" exit 0 } @@ -71,6 +73,7 @@ for arg in "$@"; do -r|--restore) RESTORE=true ;; -q|--quiet) QUIET=true ;; -p|--push) PUSH=true ;; + -s|--suggest) SUGGEST=true ;; -h|--help) usage ;; *) echo -e "${RED}Unknown option: $arg${NC}"; usage ;; esac |
