aboutsummaryrefslogtreecommitdiffstats
path: root/src/p_options.go
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 17:16:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-01 17:16:12 +0200
commit93620443da0307626ff7a29d9eeff70079c1a192 (patch)
tree682fea1f3678c64ef2b9099952acb63bdf0528bd /src/p_options.go
parentNew file, still progressing (diff)
downloadgo2work-93620443da0307626ff7a29d9eeff70079c1a192.tar.gz
go2work-93620443da0307626ff7a29d9eeff70079c1a192.tar.bz2
go2work-93620443da0307626ff7a29d9eeff70079c1a192.tar.xz
go2work-93620443da0307626ff7a29d9eeff70079c1a192.tar.zst
go2work-93620443da0307626ff7a29d9eeff70079c1a192.zip
Set up default options, now going for random and true parse
Diffstat (limited to 'src/p_options.go')
-rw-r--r--src/p_options.go17
1 files changed, 14 insertions, 3 deletions
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
}