Skip to content

Commit

Permalink
Fix cylc-search for directories without suite.rc
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow committed Apr 6, 2019
1 parent 0b99227 commit 91cae39
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions bin/cylc-search
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def print_heading(heading):
print('>>>' + '->'.join(heading))


def parse_args():
@cli_function
def main():
parser = COP(
__doc__, prep=True,
argdoc=[('SUITE', 'Suite name or path'),
Expand All @@ -72,12 +73,7 @@ def parse_args():
"-x", help="Do not search in the suite bin directory",
action="store_false", default=True, dest="search_bin")

return parser.parse_args()


@cli_function
def main():
options, args = parse_args()
options, args = parser.parse_args()
suite, suiterc = SuiteSrvFilesManager().parse_suite_arg(options, args[0])

# cylc search SUITE PATTERN
Expand Down

0 comments on commit 91cae39

Please sign in to comment.