Skip to content

Commit 07d0b2d

Browse files
committed
Add shorthand for options
1 parent 9f3ff04 commit 07d0b2d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/fopus.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ show_help()
9292
echo ""
9393
echo "Options:"
9494
echo -e "\t-1, --one\t\tPut FILEs in one backup."
95-
echo -e "\t--no-split\t\tDon't split backup in parts."
96-
echo -e "\t-b, --split-size SIZE\tSplit backup pieces of SIZE"
97-
echo -e "\t--group-by-name\t\tGroup backups by file/date instead of date/name."
95+
echo -e "\t-s, --no-split\t\tDon't split backup in parts."
96+
echo -e "\t-b, --split-size SIZE\tSplit backup pieces of SIZE. Default is 1G."
97+
echo -e "\t-g, --group-by-name\tGroup backups by file/date instead of date/name."
9898
echo -e "\t-o, --output OUTPUT\tBackup in the directory at path OUTPUT."
99-
echo -e "\t-n --dry-run\t\tDon't perform any action."
99+
echo -e "\t-n, --dry-run\t\tDon't perform any action."
100100
echo ""
101-
echo "Example:"
101+
echo "Examples:"
102102
echo -e "\t$ fopus --output ~/Backups --split-size 1G Documents/ lorem-ipsum.txt"
103103
echo -e "\t$ fopus --one --no-split Pictures/ Videos/"
104104
}
@@ -171,13 +171,13 @@ evaluate_arguments()
171171
"--dry-run"|"-n")
172172
DRY_RUN="true" ;;
173173

174-
"--group-by-name")
174+
"--group-by-name"|"-g")
175175
CONFIG[groupbyname]="true" ;;
176176

177177
"--one"|"-1")
178178
CONFIG[one]="true" ;;
179179

180-
"--no-split")
180+
"--no-split"|"-s")
181181
if [[ -n "${CONFIG[partsize]}" ]]; then
182182
>&2 echo "fopus: --split-size can't be used with --no-split"
183183
exit 1

0 commit comments

Comments
 (0)