Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossCeilo
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
AossCeilo
Commits
2d2b668a
"git@gitlab.ssec.wisc.edu:rink/python.git" did not exist on "3704783f0cb04a8b69a5b0d17c251167224d37b1"
Verified
Commit
2d2b668a
authored
11 months ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Fix command parsing in tidy script
parent
b49febb2
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
aossceilo/tidy.py
+8
-2
8 additions, 2 deletions
aossceilo/tidy.py
with
8 additions
and
2 deletions
aossceilo/tidy.py
+
8
−
2
View file @
2d2b668a
...
@@ -245,6 +245,11 @@ def main():
...
@@ -245,6 +245,11 @@ def main():
default
=
""
,
default
=
""
,
help
=
"
used in product filename, see metobs.util for details
"
,
help
=
"
used in product filename, see metobs.util for details
"
,
)
)
parser
.
add_argument
(
"
command
"
,
nargs
=
"
*
"
,
help
=
"
Command to run (use
'
help
'
for available options)
"
,
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
if
args
.
self_test
:
if
args
.
self_test
:
import
doctest
import
doctest
...
@@ -305,12 +310,13 @@ def main():
...
@@ -305,12 +310,13 @@ def main():
}
}
)
)
if
(
not
args
)
or
(
args
[
0
]
not
in
commands
):
command
=
args
.
command
if
not
command
or
command
[
0
]
not
in
commands
:
parser
.
print_help
()
parser
.
print_help
()
_help
()
_help
()
return
9
return
9
else
:
else
:
locals
()[
args
[
0
]](
*
args
[
1
:])
commands
[
command
[
0
]](
*
command
[
1
:])
return
0
return
0
...
...
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