Skip to content

Commit

Permalink
Merge: Help command-line options
Browse files Browse the repository at this point in the history
fix #146
Signed-off-by: iszalai [email protected]

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/morriar/missions/157)
<!-- Reviewable:end -->

Pull-Request: #157
Reviewed-by: Jean Privat <[email protected]>
Reviewed-by: Lucas Bajolet <[email protected]>
  • Loading branch information
Jenkins Gresil committed Nov 2, 2016
2 parents c17d3c6 + 694cbe9 commit 9856192
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app.nit
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
import api

var opts = new AppOptions.from_args(args)

if opts.opt_help.value then
print("Usage: app [Options]\nOptions:")
opts.usage
return
end

var config = new AppConfig.from_options(opts)
var app = new App

Expand Down

0 comments on commit 9856192

Please sign in to comment.