1515
1616static void printHelp (void )
1717{
18- puts (" sdFormatLinux 0.0 by profi200\n "
18+ puts (" sdFormatLinux 0.1. 0 by profi200\n "
1919 " Usage: sdFormatLinux [OPTIONS...] DEVICE\n\n "
2020 " Options:\n "
2121 " -l, --label LABEL Volume label. Maximum 11 uppercase characters.\n "
@@ -29,7 +29,6 @@ static void printHelp(void)
2929 " to bypass the FAT32 64 KiB cluster size limit.\n "
3030 " Many FAT drivers including the one in Windows\n "
3131 " will not mount the filesystem or corrupt it!\n "
32- // " -d, --dry-run Only pretend to format the card (non-destructive).\n"
3332 " -v, --verbose Show format details.\n "
3433 " -h, --help Output this help.\n " );
3534}
@@ -41,7 +40,6 @@ int main(const int argc, char *const argv[])
4140 static const struct option long_options[] =
4241 {{" big-clusters" , no_argument, NULL , ' b' },
4342 { " capacity" , required_argument, NULL , ' c' },
44- // { "dry-run", no_argument, NULL, 'd'},
4543 { " erase" , required_argument, NULL , ' e' },
4644 { " force-fat32" , no_argument, NULL , ' f' },
4745 { " label" , required_argument, NULL , ' l' },
@@ -54,7 +52,7 @@ int main(const int argc, char *const argv[])
5452 char label[12 ]{};
5553 while (1 )
5654 {
57- const int c = getopt_long (argc, argv, " bc:" /* d */ " e:fl:vh" , long_options, NULL );
55+ const int c = getopt_long (argc, argv, " bc:e:fl:vh" , long_options, NULL );
5856 if (c == -1 ) break ;
5957
6058 switch (c)
@@ -73,9 +71,6 @@ int main(const int argc, char *const argv[])
7371 }
7472 }
7573 break ;
76- /* case 'd':
77- flags.dryRun = 1;
78- break;*/
7974 case ' e' :
8075 {
8176 // TODO: Support full overwrite?
0 commit comments