Fix usage help message

This commit is contained in:
Marcel Alexandru Nitan
2023-07-25 00:46:39 +03:00
parent a1a03c57f2
commit 832a2a98c8
2 changed files with 15 additions and 3 deletions

View File

@@ -14,8 +14,8 @@
## Usage
```
cdrom [FILE]... [OPTION]...
```bash
isodrive [FILE]... [OPTION]...
Mounts the given FILE as a bootable device using configfs.
Run without any arguments to unmount any mounted files and to display this help message.
@@ -24,6 +24,18 @@ Optional arguments:
-cdrom Mounts the file as a cdrom.
```
### Examples
mount iso as rw
```bash
isodrive /path/to/file.iso -rw
```
mount iso as cdrom
```bash
isodrive /path/to/file.iso -cdrom
```
## Linux
* Has been only tested on Halium based mobile linux, but should work on mainline devices too.

View File

@@ -28,7 +28,7 @@ int main(int argc, char *argv[])
if (argc == 1)
{
printf("Usage:\n");
printf("cdrom [FILE]... [OPTION]...\n");
printf("isodrive [FILE]... [OPTION]...\n");
printf("Mounts the given FILE as a bootable device using configfs.\n");
printf(
"Run without any arguments to unmount any mounted files and display this help message.\n\n");