X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bcachefs.c;h=4efe29edaad25c0b3fb96865e0a5f4907b3f1d55;hb=e51f25af3cdd7eadc49a91ea4f5e48fb2759fc18;hp=827996f8b3ecb7ecb2e638ac1e59ee11d8544b3d;hpb=731926b5e5fc28752433f830569d228513cceea6;p=bcachefs-tools-debian diff --git a/bcachefs.c b/bcachefs.c index 827996f..4efe29e 100644 --- a/bcachefs.c +++ b/bcachefs.c @@ -97,6 +97,9 @@ static void usage(void) " fusemount Mount a filesystem via FUSE\n" "\n" "Miscellaneous:\n" +#ifndef BCACHEFS_NO_RUST + " completions Generate shell completions\n" +#endif " version Display the version of the invoked bcachefs tool\n"); } @@ -273,6 +276,8 @@ int main(int argc, char *argv[]) #ifndef BCACHEFS_NO_RUST if (!strcmp(cmd, "mount")) return cmd_mount(argc, argv); + if (strstr(cmd, "completions")) + return cmd_completions(argc, argv); #endif #ifdef BCACHEFS_FUSE