Skip to content

Commit

Permalink
Better parameter ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Jan 3, 2023
1 parent 3891a60 commit 12f4506
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ mkstage4 -t /custom/mount/point archive_name
### Command line arguments

```console
usage:
mkstage4 [-q -c -b -l -k] [-s || -t <target-mountpoint>] [-e <additional excludes dir*>] [-i <additional include target>] <archive-filename> [custom-tar-options]
-q: activates quiet mode (no confirmation).
-c: excludes some confidential files (currently only .bash_history and connman network lists).
Usage:
mkstage4.sh [-b -c -k -l -q] [-C <compression-type>] [-s || -t <target-mountpoint>] [-e <additional excludes dir*>] [-i <additional include target>] <archive-filename> [custom-tar-options]
-b: excludes boot directory.
-c: excludes some confidential files (currently only .bash_history and connman network lists).
-k: separately save current kernel modules and src (creates smaller archives and saves decompression time).
-l: excludes lost+found directory.
-e: an additional excludes directory (one dir one -e, donot use it with *).
-i: an additional target to include. This has higher precedence than -e, -t, and -s.
-q: activates quiet mode (no confirmation).
-C: specify tar compression (default: bz2, available: lz4 xz bz2 zst gz).
-s: makes tarball of current system.
-k: separately save current kernel modules and src (creates smaller archives and saves decompression time).
-t: makes tarball of system located at the <target-mountpoint>.
-C: specify tar compression (default: bz2, available: lz4 xz bz2 zst gz).
-e: an additional excludes directory (one dir one -e, donot use it with *).
-i: an additional target to include. This has higher precedence than -e, -t, and -s.
-h: displays help message.
```

Expand Down
16 changes: 8 additions & 8 deletions mkstage4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,18 @@ then
HAS_PORTAGEQ=1
fi

USAGE="usage:\n\
$(basename "$0") [-q -c -b -l -k] [-s || -t <target-mountpoint>] [-e <additional excludes dir*>] [-i <additional include target>] <archive-filename> [custom-tar-options]\n\
-q: activates quiet mode (no confirmation).\n\
-c: excludes some confidential files (currently only .bash_history and connman network lists).\n\
USAGE="Usage:\n\
$(basename "$0") [-b -c -k -l -q] [-C <compression-type>] [-s || -t <target-mountpoint>] [-e <additional excludes dir*>] [-i <additional include target>] <archive-filename> [custom-tar-options]\n\
-b: excludes boot directory.\n\
-c: excludes some confidential files (currently only .bash_history and connman network lists).\n\
-k: separately save current kernel modules and src (creates smaller archives and saves decompression time).\n\
-l: excludes lost+found directory.\n\
-e: an additional excludes directory (one dir one -e, donot use it with *).\n\
-i: an additional target to include. This has higher precedence than -e, -t, and -s.\n\
-q: activates quiet mode (no confirmation).\n\
-C: specify tar compression (default: ${COMPRESS_TYPE}, available: ${!COMPRESS_AVAILABLE[*]}).\n\
-s: makes tarball of current system.\n\
-k: separately save current kernel modules and src (creates smaller archives and saves decompression time).\n\
-t: makes tarball of system located at the <target-mountpoint>.\n\
-C: specify tar compression (default: ${COMPRESS_TYPE}, available: ${!COMPRESS_AVAILABLE[*]}).\n\
-e: an additional excludes directory (one dir one -e, donot use it with *).\n\
-i: an additional target to include. This has higher precedence than -e, -t, and -s.\n\
-h: displays help message."

# reads options:
Expand Down

0 comments on commit 12f4506

Please sign in to comment.