Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Hussamuddin Nasir
emulab-devel
Commits
6643d12b
Commit
6643d12b
authored
Apr 15, 2010
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Additional minor changes to the options list in print_help()"
This reverts commit
99b48da8
. Breaks the build.
parent
48de0450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
16 deletions
+46
-16
assign/assign.cc
assign/assign.cc
+46
-16
No files found.
assign/assign.cc
View file @
6643d12b
...
...
@@ -441,9 +441,8 @@ void print_help() {
cout
<<
" -t <float> - Start the temperature at <float> instead of melting."
<<
endl
;
cout
<<
" -u - Print a summary of the solution."
<<
endl
;
cout
<<
" -c <float> - Use the 'connected' pnode finding algorithm "
;
cout
<<
"<float>*100%"
<<
endl
;
cout
<<
" of the time."
<<
endl
;
cout
<<
" -c <float> - Use the 'connected' pnode finding algorithm "
<<
"<float>*100%"
<<
endl
<<
" of the time."
<<
endl
;
cout
<<
" -n - Don't anneal - just do the prechecks."
<<
endl
;
cout
<<
" -x <file> - Specify a text ptop file"
<<
endl
;
...
...
@@ -458,9 +457,8 @@ void print_help() {
// cout << " -q <file> - Specify a rspec ptop file" << endl;
// cout << " -w <file> - Specify a rspec vtop file" << endl;
cout
<<
" -W <file> - Specify the output rspec file"
<<
endl
;
cout
<<
" -f <T>[/<T>] - Specify the ptop/vtop file formats "
<<
endl
;
cout
<<
" T should be one of (text|xml|rspec-<rspec ver. number>)"
<<
endl
;;
cout
<<
" Specifying only one T is equivalent to -f T/T"
<<
endl
;
cout
<<
" -f <T>[/<T>] - Specify the ptop and vtop file formats "
;
cout
<<
"(text|xml|rspec-<ver>)"
<<
endl
;
#endif
cout
<<
" -F - Apply additional checking to fixed nodes"
<<
endl
;
cout
<<
" -D - Dump configuration options"
<<
endl
;
...
...
@@ -926,17 +924,57 @@ int main(int argc,char **argv) {
dump_config
=
true
;
break
;
case
'x'
:
/*#ifdef WITH_XML
ptop_xml_input = false;
#endif*/
if
(
strcmp
(
optarg
,
""
)
==
0
)
{
print_help
();
}
ptopFilename
=
optarg
;
break
;
/*#ifdef WITH_XML
case 'X':
ptop_xml_input = true;
if (strcmp(optarg, "") == 0) {
print_help();
}
ptopFilename = optarg;
break;
#endif*/
case
'y'
:
/*#ifdef WITH_XML
vtop_xml_input = false;
#endif*/
if
(
strcmp
(
optarg
,
""
)
==
0
)
{
print_help
();
}
vtopFilename
=
optarg
;
break
;
// #ifdef WITH_XML
// case 'Y':
// vtop_xml_input = true;
// if (strcmp(optarg, "") == 0) {
// print_help();
// }
// vtopFilename = optarg;
// break;
// #endif
// #ifdef WITH_XML
// case 'q':
// ptop_rspec_input = true;
// if (strcmp(optarg, "") == 0) {
// print_help();
// }
// ptopFilename = optarg;
// break;
//
// case 'w':
// vtop_rspec_input = true;
// if (strcmp(optarg, "") == 0) {
// print_help();
// }
// vtopFilename = optarg;
// break;
#ifdef WITH_XML
case
'W'
:
if
(
strcmp
(
optarg
,
""
)
==
0
)
{
...
...
@@ -963,23 +1001,18 @@ int main(int argc,char **argv) {
else
if
(
strstr
(
ptopFileFormat
,
"rspec"
)
!=
NULL
)
{
ptop_rspec_input
=
true
;
}
else
if
(
strstr
(
ptopFileFormat
,
"xml"
)
!=
NULL
){
ptop_xml_input
=
true
;
}
else
{
p
rint_help
()
;
p
top_xml_input
=
true
;
}
#endif
if
(
vtopFileFormat
==
NULL
)
{
cout
<<
"NULL"
<<
endl
;
vtop_xml_input
=
ptop_xml_input
;
vtop_rspec_input
=
ptop_rspec_input
;
}
else
{
cout
<<
"vtopFileFormat: "
<<
vtopFileFormat
<<
endl
;
if
(
strcmp
(
vtopFileFormat
,
"text"
)
==
0
)
{
vtop_xml_input
=
false
;
}
...
...
@@ -987,11 +1020,8 @@ int main(int argc,char **argv) {
else
if
(
strstr
(
vtopFileFormat
,
"rspec"
)
!=
NULL
)
{
vtop_rspec_input
=
true
;
}
else
if
(
strstr
(
vtopFileFormat
,
"xml"
)
!=
NULL
){
vtop_xml_input
=
true
;
}
else
{
print_help
()
;
vtop_xml_input
=
true
;
}
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment