Skip to content

Commit

Permalink
src/woeusb: Obselute --format --install options
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Nov 1, 2017
1 parent 3766f38 commit 7ff82b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
16 changes: 2 additions & 14 deletions src/woeusb
Original file line number Diff line number Diff line change
Expand Up @@ -452,15 +452,9 @@ process_commandline_parameters(){
"--debug")
enable_debug="Y"
;;
'--install'\
|--partition\
--partition\
|-p)
enable_partition=Y
if [ "${parameters[0]}" = --install ]; then
echo_with_color\
yellow\
"WARNING: The deprecated --install option is still available but will be dropped in ${application_name} v3.0!"
fi
install_mode_ref='partition'
shift_array parameters
if [ "${#parameters[@]}" -lt 2 ]; then
Expand All @@ -473,15 +467,9 @@ process_commandline_parameters(){
shift_array parameters
target_media_ref="${parameters[0]}"
;;
'--format'\
|--device\
--device\
|-d)
enable_device=Y
if [ "${parameters[0]}" = --format ]; then
echo_with_color\
yellow\
"WARNING: The deprecated --format option is still available but will be dropped in ${application_name} v3.0!"
fi
# Limitation of ShellCheck to detect usage of indirection variables
# https://github.com/koalaman/shellcheck/wiki/SC2034
# shellcheck disable=SC2034
Expand Down
8 changes: 0 additions & 8 deletions src/woeusb.1
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ Drop

WARNING: ALL PREVIOUS DATA ON \fItarget_device\fR WILL BE DROPPED!

COMPATIBILITY: This mode is previously named
.B --format
, which will be obselute in future release.

.TP
\fB--partition\fR / \fB-p\fR \fIsource_media\fR \fItarget_partition\fR
Mount
Expand All @@ -46,10 +42,6 @@ into it, then make it bootable.

WARNING: ALL FILES EXISTING ON \fItarget_partition\fR WITH THE SAME FILENAME IN \fIsource_media\fR WILL BE OVERWRITTEN!

COMPATIBILITY: This mode is previously named
.B --install
, which will be obseluted in future release.

.SS MISCELLANEOUS
.TP
.B --help / -h
Expand Down

0 comments on commit 7ff82b7

Please sign in to comment.