From 93620443da0307626ff7a29d9eeff70079c1a192 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 1 Apr 2022 17:16:12 +0200 Subject: Set up default options, now going for random and true parse --- src/p_options.go | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/p_options.go') diff --git a/src/p_options.go b/src/p_options.go index 44b67e9..8abd3c2 100644 --- a/src/p_options.go +++ b/src/p_options.go @@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * go2work: src/p_options.go - * Fri Apr 1 17:03:22 CEST 2022 + * Fri Apr 1 17:16:04 CEST 2022 * Joe * * Options parsing. @@ -47,7 +47,18 @@ package main -func parse_options() options { - var options options +func parse_options() Options { + options := init_def_options() + return options +} + +func init_def_options() Options { + options := Options{ + files: DEF_FILES(), + media_player: DEF_MEDIA_PLAYER, + player_options: DEF_PLAYER_OPTIONS(), + random: DEF_RANDOM, + use_fortune: DEF_USE_FORTUNE, + } return options } -- cgit v1.2.3