Skip to content

Commit

Permalink
Merge pull request #157 from ventilooo/command-line
Browse files Browse the repository at this point in the history
Help command-line options
  • Loading branch information
privat authored Nov 3, 2016
2 parents 5ccea76 + 694cbe9 commit caca34c
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 caca34c

Please sign in to comment.