mirror of
https://github.com/rocketraman/sane-scan-pdf.git
synced 2025-05-16 07:30:21 -07:00
Merge pull request #24 from p/mode-warning
Add the warning when neither -m/--mode nor --mode-hw-default are specified
This commit is contained in:
commit
084f0723b8
6
scan
6
scan
@ -155,10 +155,14 @@ if [[ $USEARRAY == 1 && $USEOUTPUT == 1 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $MODE_CHANGED == 1 && $MODE_HW_DEFAULT == 1 ]]; then
|
if [[ $MODE_CHANGED == 1 && $MODE_HW_DEFAULT == 1 ]]; then
|
||||||
echo >&2 "Use one of --mode or --mode-hardware-default. Aborting."
|
echo >&2 "Use one of -m/--mode or --mode-hardware-default. Aborting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $MODE_CHANGED == 0 && $MODE_HW_DEFAULT == 0 ]]; then
|
||||||
|
echo >&2 'Warning: neither the -m/--mode nor --mode-hw-default argument was specified. The current default is "Lineart", however -m/--mode is a SANE device-specific switch. Therefore, in a future version when --mode is not specified, `'"`basename "$0"`""'"' will defer to the device-specific default. If you wish to continue using "Lineart" as your scan mode, either verify that is the default for your scanner (scanadf --help -d <device>), or specify --mode Lineart explicitly on the command line.'
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $USEOUTPUT == 1 && "$OUTPUT" == "" ]]; then
|
if [[ $USEOUTPUT == 1 && "$OUTPUT" == "" ]]; then
|
||||||
echo >&2 "Output file must be specified. Aborting."
|
echo >&2 "Output file must be specified. Aborting."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user