Skip to content

Commit 8b13b88

Browse files
authored
Merge pull request #43 from Lawri-van-Buel/master
2 parents a9f874d + 9ec1f29 commit 8b13b88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/hedgedoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ function main() {
413413
esac
414414
}
415415

416+
# Do the usage function of no Command line arguments are given.
417+
if [[ $# -eq 0 ]]; then
418+
set -- "help"
419+
fi
420+
416421
# Allow importing funcs without running main by using `source ./bin/hedgedoc --import`
417422
if [[ "${1:-}" != "--import" ]]; then
418423
main "$@" || exit $?

0 commit comments

Comments
 (0)