15 .add_option_get(
'dist', {
default=
'{game}'})
19 .add_option_get(
'dist', {
default=
'./dist/'})
20 .add_option_get(
'core', {
default=
'ginga'})
21 .add_option_get(
'screen', {
default=
'1280x720'})
22 .add_option_has(
'bundler')
26 .
add_next_value(
'game', {required=
true, alias=
'@examples/{{game}}/game.lua'})
27 .add_option_get(
'core', {
default=
'love'})
28 .add_option_get(
'screen', {
default=
'1280x720'})
31 .
add_next_value(
'game', {required=
true, alias=
'@examples/{{game}}/game.lua'})
32 .add_option_get(
'format', {
default=
'{{title}} {{version}}', alias=
commands_game.meta_alias})
36 .add_option_get(
'dist', {
default=
'./dist/'})
40 .add_option_get(
'dist', {
default=
'a.out'})
44 .add_option_get(
'dist', {required=
true})
48 .add_option_get(
'dist', {required=
true})
52 .add_next_value(
'dist', {required=
true})
53 .add_option_get(
'format', {required=
true})
54 .add_option_get(
'replace', {required=
true})
58 .add_next_value(
'dist', {required=
true})
78if not
ok and
os and
os.exit then
local function from(host_args)
local function add_subcommand(self, cmd_name, cmd_collection)
local function add_option_has(self, param)
local function require(std, game, application)
local function init(args)
add_next_value('game', {require=true, alias=' @examples/{{game}}/game.lua'})
add_option_get('dist', {default='{game}'})