Skip to content

Commit

Permalink
ENH/DOC: no_args_is_help; note in a comment (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko authored Mar 9, 2023
1 parent 30b23bc commit 3a939eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions metagenomescope/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
)


# Make mgsc -h show the help text
@click.command(context_settings={"help_option_names": ["-h", "--help"]})
# Make mgsc -h (or just mgsc by itself) show the help text
@click.command(
context_settings={"help_option_names": ["-h", "--help"]},
no_args_is_help=True,
)
@click.option("-i", "--input-file", required=True, help=INPUT)
@click.option("-o", "--output-dir", required=True, help=OUTPUT_DIR)
# @click.option(
Expand Down
3 changes: 2 additions & 1 deletion metagenomescope/graph_objects/assembly_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def reindex_digraph(self):
layout and internal storage of nodes. This way, we can have multiple
nodes with the same name without causing a problem.
Also calls self.save_orig_src_and_tgt() on every edge in the digraph.
Also calls self.save_orig_src_and_tgt() on every edge in the digraph
(critically, that's done *after* assigning nodes unique integer IDs).
"""
self.digraph = nx.convert_node_labels_to_integers(
self.digraph, label_attribute="name"
Expand Down

0 comments on commit 3a939eb

Please sign in to comment.