mount: Put the source argument first

This commit is contained in:
apio 2023-06-20 21:44:09 +02:00
parent a9460469d9
commit 2aa7056e11
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ Result<int> luna_main(int argc, char** argv)
os::ArgumentParser parser;
parser.add_description("Mount a file system.");
parser.add_system_program_info("mount"_sv);
parser.add_positional_argument(target, "mountpoint"_sv, true);
parser.add_positional_argument(source, "source"_sv, true);
parser.add_positional_argument(target, "mountpoint"_sv, true);
parser.add_value_argument(fstype, 't', "type"_sv, "the file system type to use");
parser.parse(argc, argv);

View File

@ -1,5 +1,5 @@
#!/bin/sh
mkdir -p /tmp
mount -t tmpfs /tmp tmpfs
mount -t tmpfs tmpfs /tmp
chmod 1777 /tmp