Skip to content

Commit 9b9696a

Browse files
committed
doc: clarify behavior of --preserve-env option in README and main.rs
1 parent 0294272 commit 9b9696a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

book/src/sr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<b>-r, --role</b> &lt;ROLE&gt; Role to select
1515
<b>-t, --task</b> &lt;TASK&gt; Task to select (--role required)
1616
<b>-u, --user</b> &lt;USER&gt; Specify the user to execute the command as
17-
<b>-E, --preserve-env</b> Preserve environment variables
17+
<b>-E, --preserve-env</b> Preserve environment variables if allowed by a matching task
1818
<b>-p, --prompt</b> &lt;PROMPT&gt; Prompt to display
1919
<b>-i, --info</b> Display rights of executor
2020
<b>-h, --help</b> Print help (see more with '--help')

src/sr/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const USAGE: &str = formatcp!(
6060
Task option allows you to select a specific task to use in the selected role. Note: You must specify a role to designate a task
6161
6262
{BOLD}-E, --preserve-env <TASK>{RST}
63-
Task option allows you to select a specific task to use in the selected role. Note: You must specify a role to designate a task
63+
Preserve environment variables if allowed by a matching task
6464
6565
{BOLD}-p, --prompt <PROMPT>{RST}
6666
Prompt option allows you to override the default password prompt and use a custom one

0 commit comments

Comments
 (0)