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
+14 -2
View File
@@ -14,8 +14,8 @@
## Usage ## Usage
``` ```bash
cdrom [FILE]... [OPTION]... isodrive [FILE]... [OPTION]...
Mounts the given FILE as a bootable device using configfs. 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. 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. -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 ## Linux
* Has been only tested on Halium based mobile linux, but should work on mainline devices too. * Has been only tested on Halium based mobile linux, but should work on mainline devices too.
+1 -1
View File
@@ -28,7 +28,7 @@ int main(int argc, char *argv[])
if (argc == 1) if (argc == 1)
{ {
printf("Usage:\n"); 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("Mounts the given FILE as a bootable device using configfs.\n");
printf( printf(
"Run without any arguments to unmount any mounted files and display this help message.\n\n"); "Run without any arguments to unmount any mounted files and display this help message.\n\n");