srs5694 | 1e09372 | 2010-01-05 00:14:19 -0500 | [diff] [blame] | 1 | // sgdisk.cc |
srs5694 | 73ba479 | 2010-01-12 18:18:17 -0500 | [diff] [blame] | 2 | // Command-line-based version of gdisk. This program is named after sfdisk, |
| 3 | // and it can serve a similar role (easily scripted, etc.), but it's used |
| 4 | // strictly via command-line arguments, and it doesn't bear much resemblance |
| 5 | // to sfdisk in actual use. |
srs5694 | 1e09372 | 2010-01-05 00:14:19 -0500 | [diff] [blame] | 6 | // |
srs5694 | 73ba479 | 2010-01-12 18:18:17 -0500 | [diff] [blame] | 7 | // by Rod Smith, project began February 2009; sgdisk begun January 2010. |
srs5694 | 1e09372 | 2010-01-05 00:14:19 -0500 | [diff] [blame] | 8 | |
srs5694 | 64cbd17 | 2011-03-01 22:03:54 -0500 | [diff] [blame] | 9 | /* This program is copyright (c) 2009-2011 by Roderick W. Smith. It is distributed |
srs5694 | 1e09372 | 2010-01-05 00:14:19 -0500 | [diff] [blame] | 10 | under the terms of the GNU GPL version 2, as detailed in the COPYING file. */ |
| 11 | |
srs5694 | a17fe69 | 2011-09-10 20:30:20 -0400 | [diff] [blame] | 12 | #include "gptcl.h" |
srs5694 | 73ba479 | 2010-01-12 18:18:17 -0500 | [diff] [blame] | 13 | |
| 14 | using namespace std; |
srs5694 | 1e09372 | 2010-01-05 00:14:19 -0500 | [diff] [blame] | 15 | |
| 16 | #define MAX_OPTIONS 50 |
| 17 | |
srs5694 | 73ba479 | 2010-01-12 18:18:17 -0500 | [diff] [blame] | 18 | int main(int argc, char *argv[]) { |
srs5694 | a17fe69 | 2011-09-10 20:30:20 -0400 | [diff] [blame] | 19 | GPTDataCL theGPT; |
| 20 | return theGPT.DoOptions(argc, argv); |
srs5694 | 73ba479 | 2010-01-12 18:18:17 -0500 | [diff] [blame] | 21 | } // main |