Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print helpful message when xavier CLI is called with no arguments #75

Merged
merged 5 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading