Usermode/mount - Added options support
authorJohn Hodge <[email protected]>
Tue, 22 May 2012 07:41:40 +0000 (15:41 +0800)
committerJohn Hodge <[email protected]>
Tue, 22 May 2012 07:41:40 +0000 (15:41 +0800)
Usermode/Applications/mount_src/main.c

index 5bee7c6..602aefd 100644 (file)
@@ -56,6 +56,7 @@ int main(int argc, char *argv[])
                        {
                        // -t <driver> :: Filesystem driver to use
                        case 't':       sType = argv[++i];      break;
+                       case 'o':       sOptions = argv[++i];   break;
                        case '-':
                                //TODO: Long Arguments
                        default:
@@ -147,7 +148,7 @@ int main(int argc, char *argv[])
 void ShowUsage(char *ProgName)
 {
        fprintf(stderr, "Usage:\n");
-       fprintf(stderr, "    %s [-t <type>] <device> <directory>\n", ProgName);
+       fprintf(stderr, "    %s [-t <type>] <device> <directory> [-o <options>]\n", ProgName);
        fprintf(stderr, "or  %s <device>\n", ProgName);
        fprintf(stderr, "or  %s <directory>\n", ProgName);
        fprintf(stderr, "or  %s\n", ProgName);

UCC git Repository :: git.ucc.asn.au