Skip to content

Commit

Permalink
Merge pull request #6868 from H3C/wip-11642-cephfuse-useage
Browse files Browse the repository at this point in the history
ceph-fuse:print usage information when no parameter specified

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
  • Loading branch information
gregsfortytwo committed Jan 19, 2016
2 parents e38f390 + 8fabcbb commit b3cb68b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ceph_fuse.cc
Expand Up @@ -69,6 +69,10 @@ int main(int argc, const char **argv, const char *envp[]) {
//cerr << "ceph-fuse starting " << myrank << "/" << world << std::endl;
vector<const char*> args;
argv_to_vec(argc, argv, args);
if (args.empty()) {
usage();
return 0;
}
env_to_vec(args);

global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_DAEMON,
Expand Down

0 comments on commit b3cb68b

Please sign in to comment.