Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
96125675
Commit
96125675
authored
19 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add sfree option --bglblock
parent
e52bf30b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/select/bluegene/opts.c
+13
-8
13 additions, 8 deletions
src/plugins/select/bluegene/opts.c
with
13 additions
and
8 deletions
src/plugins/select/bluegene/opts.c
+
13
−
8
View file @
96125675
...
@@ -41,16 +41,17 @@ void parse_command_line(int argc, char *argv[])
...
@@ -41,16 +41,17 @@ void parse_command_line(int argc, char *argv[])
int
option_index
;
int
option_index
;
static
struct
option
long_options
[]
=
{
static
struct
option
long_options
[]
=
{
{
"all"
,
required_argument
,
0
,
'a'
},
{
"all"
,
required_argument
,
0
,
'a'
},
{
"partition"
,
no_argument
,
0
,
'p'
},
{
"bglblock"
,
required_argument
,
0
,
'b'
},
{
"version"
,
no_argument
,
0
,
'V'
},
{
"partition"
,
required_argument
,
0
,
'p'
},
{
"help"
,
no_argument
,
0
,
'h'
},
{
"version"
,
no_argument
,
0
,
'V'
},
{
"usage"
,
no_argument
,
0
,
'u'
},
{
"help"
,
no_argument
,
0
,
'h'
},
{
"usage"
,
no_argument
,
0
,
'u'
},
{
NULL
,
0
,
0
,
0
}
{
NULL
,
0
,
0
,
0
}
};
};
while
((
opt_char
=
while
((
opt_char
=
getopt_long
(
argc
,
argv
,
"ahup:V"
,
getopt_long
(
argc
,
argv
,
"a
b:
hup:V"
,
long_options
,
&
option_index
))
!=
-
1
)
{
long_options
,
&
option_index
))
!=
-
1
)
{
switch
(
opt_char
)
{
switch
(
opt_char
)
{
case
(
int
)
'?'
:
case
(
int
)
'?'
:
...
@@ -64,6 +65,7 @@ void parse_command_line(int argc, char *argv[])
...
@@ -64,6 +65,7 @@ void parse_command_line(int argc, char *argv[])
case
(
int
)
'V'
:
case
(
int
)
'V'
:
_print_version
();
_print_version
();
exit
(
0
);
exit
(
0
);
case
(
int
)
'b'
:
case
(
int
)
'p'
:
case
(
int
)
'p'
:
bgl_part_id
=
optarg
;
bgl_part_id
=
optarg
;
break
;
break
;
...
@@ -112,14 +114,17 @@ static void _print_version(void)
...
@@ -112,14 +114,17 @@ static void _print_version(void)
static
void
_usage
(
void
)
static
void
_usage
(
void
)
{
{
printf
(
"Usage: sfree [-huV
c
a] [-
p
]
\n
"
);
printf
(
"Usage: sfree [-huVa] [-
b
]
\n
"
);
}
}
static
void
_help
(
void
)
static
void
_help
(
void
)
{
{
/* We still honor -p and --partition,
* but don't tell users about them here */
printf
(
"\
printf
(
"\
Usage: sfree [OPTIONS]
\n
\
Usage: sfree [OPTIONS]
\n
\
-
p
, --
partition
free specific bglblock named
\n
\
-
b
, --
bglblock
free specific bglblock named
\n
\
-a, --all free all bglblocks
\n
\
-a, --all free all bglblocks
\n
\
-V, --version output version information and exit
\n
\
-V, --version output version information and exit
\n
\
\n
Help options:
\n
\
\n
Help options:
\n
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment