usr/src/cmd/zfs/zfs_main.c
changeset 2190 9e8f51a4bf78
parent 2169 0152c8ed1663
child 2199 712a788c2dfd
equal deleted inserted replaced
2189:bbaf8c7f3afd 2190:9e8f51a4bf78
   261 	} else {
   261 	} else {
   262 		(void) fprintf(fp, gettext("usage:\n"));
   262 		(void) fprintf(fp, gettext("usage:\n"));
   263 		(void) fprintf(fp, "%s", get_usage(current_command->usage));
   263 		(void) fprintf(fp, "%s", get_usage(current_command->usage));
   264 	}
   264 	}
   265 
   265 
   266 	if (current_command == NULL ||
   266 	if (current_command != NULL &&
   267 	    strcmp(current_command->name, "set") == 0 ||
   267 	    (strcmp(current_command->name, "set") == 0 ||
   268 	    strcmp(current_command->name, "get") == 0 ||
   268 	    strcmp(current_command->name, "get") == 0 ||
   269 	    strcmp(current_command->name, "inherit") == 0 ||
   269 	    strcmp(current_command->name, "inherit") == 0 ||
   270 	    strcmp(current_command->name, "list") == 0)
   270 	    strcmp(current_command->name, "list") == 0))
   271 		show_properties = B_TRUE;
   271 		show_properties = B_TRUE;
   272 
   272 
   273 	if (show_properties) {
   273 	if (show_properties) {
   274 
   274 
   275 		(void) fprintf(fp,
   275 		(void) fprintf(fp,
   296 			else
   296 			else
   297 				(void) fprintf(fp, "%s\n", zfs_prop_values(i));
   297 				(void) fprintf(fp, "%s\n", zfs_prop_values(i));
   298 		}
   298 		}
   299 		(void) fprintf(fp, gettext("\nSizes are specified in bytes "
   299 		(void) fprintf(fp, gettext("\nSizes are specified in bytes "
   300 		    "with standard units such as K, M, G, etc.\n"));
   300 		    "with standard units such as K, M, G, etc.\n"));
       
   301 	} else {
       
   302 		/*
       
   303 		 * TRANSLATION NOTE:
       
   304 		 * "zfs set|get" must not be localised this is the
       
   305 		 * command name and arguments.
       
   306 		 */
       
   307 		(void) fprintf(fp,
       
   308 		    gettext("\nFor the property list, run: zfs set|get\n"));
   301 	}
   309 	}
   302 
   310 
   303 	exit(requested ? 0 : 2);
   311 	exit(requested ? 0 : 2);
   304 }
   312 }
   305 
   313