Skip to content
Snippets Groups Projects
Commit 36e4593b authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

set -e options as default option

parent 4c2bab30
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ Lists or replaces an environment variable of a service depending on the options
- **-L** : list defined environment variables for service.
- **-e** : edit the configuration file with `EDITOR` set in your system environment
- **-e** : edit the configuration file with `EDITOR` set in your system environment. This is the default option if **-L** or **-r** was not passed.
- **-r** *key=value* : override an existing `key=value` pair with the given one. The `key=value` needs to be single quoted in case of multiple arguments.
......
......@@ -72,6 +72,8 @@ int ssexec_env(int argc, char const *const *argv,char const *const *envp,ssexec_
if (argc < 1) log_usage(usage_env) ;
sv = argv[0] ;
if (!list && !replace && !edit) edit = 1 ;
treename = !info->opt_tree ? 0 : info->treename.s ;
if (!src)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment