Skip to content

Commit

Permalink
Merge pull request #75 from CCBR/iss-72
Browse files Browse the repository at this point in the history
Print helpful message when xavier CLI is called with no arguments
  • Loading branch information
kelly-sovacool authored Feb 7, 2024
2 parents 37c3850 + d0f8621 commit 077c642
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: docker://snakemake/snakemake:v6.8.2
- name: check CLI basics
run: |
./xavier --help
./xavier --version
- name: Tumor-normal FastQ Dry Run
run: |
docker run -v $PWD:/opt2 snakemake/snakemake:v6.8.2 \
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## development version

- Create `CITATION.cff` to describe how to cite XAVIER. (#68, @kelly-sovacool)
- Provide a more helpful error message when `xavier` is called with no arguments. (#75, @kelly-sovacool)
- Minor documentation improvements. (#78, @kelly-sovacool)

## v3.0.2
Expand Down
5 changes: 5 additions & 0 deletions xavier
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,11 @@ def parsed_arguments():


def main():
# show helpful error message when no arguments given
if len(sys.argv) == 1:
# Nothing was provided
fatal("Invalid usage: xavier [-h] [--version] ...")

# Collect args for sub-command
args = parsed_arguments()

Expand Down

0 comments on commit 077c642

Please sign in to comment.