ls: List the current directory by default instead of the root directory
This commit is contained in:
parent
79a96bf5af
commit
dfce93c18f
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user