#593 Issue closed: format-workflow.sh does not honor the option arguments

Labels: documentation

gdha opened issue at 2015-06-04 14:39:

In the format-workflow.sh script:

    # Parse options
    OPTS="$(getopt -n "$PROGRAM format" -o "fhy" -l "force,help,yes" -- "$@")"

These options are not honored as the rear main script interprets the options first and these are unknown. So, this piece of code was not well tested at creation time.

gdha commented at 2015-06-04 16:04:

Not a bug, but lack of documentation of how to use it:
Use rear -v format -- --help /dev/<usb-device>

Came across this when I was looking into making the USB disk EFI bootable

schlomo commented at 2015-06-04 16:28:

Maybe we can simplify the usage?

rear format dev=/dev/sdb
rear format /dev/sdb
... ?

On 4 June 2015 at 18:04, gdha notifications@github.com wrote:

Not a bug, but lack of documentation of how to use it:
Use rear -v format -- --help /dev/

Came across this when I was looking into making the USB disk EFI bootable


Reply to this email directly or view it on GitHub
https://github.com/rear/rear/issues/593#issuecomment-108949653.

jsmeix commented at 2016-05-11 12:47:

For completeness:
Issue https://github.com/rear/rear/issues/603 is the one about
"making the USB disk EFI bootable" that is mentioned above.


[Export of Github issue for rear/rear.]