Lines Matching defs:argv
559 * argv/argc should correspond only to the arguments after the command.
561 static zx_status_t edit_cros_partition(char* const * argv, int argc) {
567 long idx_part = strtol(argv[0], &end, 10);
568 if (*end != 0 || argv[0][0] == 0) {
579 while ((c = getopt(argc, argv, "T:P:S:")) > 0) {
627 char* dev = argv[optind];
741 // repartition expects argv to start with the disk path and be followed by
743 static int repartition(int argc, char** argv) {
746 const char* dev = argv[0];
751 argv = &argv[1];
780 int64_t sz = parse_size(argv[(i*3)+2]);
811 char *name = argv[i*3];
812 char *type_string = argv[i*3+1];
852 int main(int argc, char** argv) {
853 bin_name = argv[0];
856 if (!strcmp(argv[1], "--live-dangerously")) {
859 argv++;
865 const char* cmd = argv[1];
868 dump_partitions(argv[2]);
871 init_gpt(argv[2]);
874 add_partition(argv[5], strtoull(argv[2], NULL, 0), strtoull(argv[3], NULL, 0), argv[4]);
877 remove_partition(argv[3], strtol(argv[2], NULL, 0));
880 if (edit_partition(argv[5], strtol(argv[2], NULL, 0), argv[3], argv[4])) {
885 if (edit_cros_partition(argv + 2, argc - 2)) {
890 if (adjust_partition(argv[5], strtol(argv[2], NULL, 0),
891 strtoull(argv[3], NULL, 0), strtoull(argv[4], NULL, 0))) {
897 if (!strcmp(argv[3], "true")) {
899 } else if (!strcmp(argv[3], "false")) {
905 if (set_visibility(argv[4], strtol(argv[2], NULL, 0), visible)) {
911 return repartition(argc-2, &argv[2]);