mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add legacy_args
This commit is contained in:
parent
0b17aece2e
commit
475754de1e
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
# | arg: -o, --only_swap - Ignore real RAM, consider only swap
|
# | arg: -o, --only_swap - Ignore real RAM, consider only swap
|
||||||
ynh_get_ram () {
|
ynh_get_ram () {
|
||||||
# Declare an array to define the options of this helper.
|
# Declare an array to define the options of this helper.
|
||||||
|
local legacy_args=ftso
|
||||||
declare -Ar args_array=( [f]=free [t]=total [s]=ignore_swap [o]=only_swap )
|
declare -Ar args_array=( [f]=free [t]=total [s]=ignore_swap [o]=only_swap )
|
||||||
local free
|
local free
|
||||||
local total
|
local total
|
||||||
|
@ -73,6 +74,7 @@ ynh_get_ram () {
|
||||||
# | arg: -o, --only_swap - Ignore real RAM, consider only swap
|
# | arg: -o, --only_swap - Ignore real RAM, consider only swap
|
||||||
ynh_require_ram () {
|
ynh_require_ram () {
|
||||||
# Declare an array to define the options of this helper.
|
# Declare an array to define the options of this helper.
|
||||||
|
local legacy_args=rftso
|
||||||
declare -Ar args_array=( [r]=required= [f]=free [t]=total [s]=ignore_swap [o]=only_swap )
|
declare -Ar args_array=( [r]=required= [f]=free [t]=total [s]=ignore_swap [o]=only_swap )
|
||||||
local required
|
local required
|
||||||
local free
|
local free
|
||||||
|
|
Loading…
Add table
Reference in a new issue