ls: List the current directory by default instead of the root directory

This commit is contained in:
apio 2023-04-11 22:13:54 +02:00
parent 79a96bf5af
commit dfce93c18f
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -12,7 +12,7 @@ int main(int argc, char** argv)
bool show_almost_all { false }; bool show_almost_all { false };
os::ArgumentParser parser; os::ArgumentParser parser;
parser.add_positional_argument(pathname, "directory"_sv, "/"_sv); parser.add_positional_argument(pathname, "directory"_sv, "."_sv);
parser.add_switch_argument(show_all, 'a', "all"_sv); parser.add_switch_argument(show_all, 'a', "all"_sv);
parser.add_switch_argument(show_almost_all, 'A', "almost-all"_sv); parser.add_switch_argument(show_almost_all, 'A', "almost-all"_sv);
parser.parse(argc, argv); parser.parse(argc, argv);