#!/bin/bash
. /opt/nextpi/bin/func/nextpi-path
. /opt/nextpi/bin/func/nextpi-help
{
	#////////////////////////////////////
	# NextPi-Globals
	#
	#////////////////////////////////////
	# Created by Xalior @ Stale Pixels
	#    Developed on a ZX Spectrum Next
	#////////////////////////////////////
	#
	# Info:
	# - Provides/Exports shared/global NextPi variables
	#    /functions for current bash session and other scripts
	# - Sourced/Loaded as start of all NextPi script
	#
	#
	#////////////////////////////////////


	#To be exported by the originating script, after loading globals
	# - Only used in DietPi's G_ERROR_ and G_WHIP_
	G_PROGRAM_NAME=''

	G_HELP_URL=`basename $0|cut -d- -f2|sed s/\_/-/g`

	args_required() {
		# Ensure we have some args, only call this is args are compulsary to your script
		if [ $# -eq 0 ]; then
			help_link
			exit -1
		else
			return 0
		fi
	}
}
